updated features
This commit is contained in:
parent
c1de235c1f
commit
ea4809e86f
4 changed files with 32 additions and 7 deletions
3
Scripts/.refind/update-secureboot
Normal file
3
Scripts/.refind/update-secureboot
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo -e "\033[0;32m[SECUREBOOT]\033[0m signing [/boot/vmlinuz-linux] due to linux kernel update"
|
||||||
|
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/vmlinuz-linux /boot/vmlinuz-linux
|
10
Scripts/.refind/update-secureboot.hook
Normal file
10
Scripts/.refind/update-secureboot.hook
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Trigger]
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = linux
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Running update-secureboot script after kernel upgrade
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/update-secureboot
|
4
Scripts/aio_installation.sh
Normal file
4
Scripts/aio_installation.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
./install_without_services.sh custom_apps.lst
|
||||||
|
sleep 5
|
||||||
|
./install.sh custom_apps.lst
|
|
@ -3,26 +3,34 @@
|
||||||
scrDir=$(dirname "$(realpath "$0")")
|
scrDir=$(dirname "$(realpath "$0")")
|
||||||
source "${scrDir}/global_fn.sh"
|
source "${scrDir}/global_fn.sh"
|
||||||
|
|
||||||
REFINDCONF="/boot/efi/EFI/refind/refind.conf"
|
REFINDCONF="/boot/EFI/refind/refind.conf"
|
||||||
|
|
||||||
install_secureboot(){
|
install_secureboot(){
|
||||||
sudo pacman -S sbsigntools efitools refind
|
sudo pacman -S sbsigntools efitools refind
|
||||||
echo "[sbsigntools, efitools, refind] installed, press any key to continue ..."
|
echo "[sbsigntools, efitools, refind] installed, press any key to continue ..."
|
||||||
sudo refind-install --shim /usr/share/shim-signed/shimx64.efi --localkeys
|
sudo refind-install --shim /usr/share/shim-signed/shimx64.efi --localkeys
|
||||||
echo "[refind-install] executed, press any key to continue ..."
|
echo "[refind-install] executed, press any key to continue ..."
|
||||||
echo signing [/boot/efi/EFI/endeavouros/grubx64.efi]
|
|
||||||
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/efi/EFI/endeavouros/grubx64.efi /boot/efi/EFI/endeavouros/grubx64.efi
|
echo signing [/boot/EFI/BOOT/BOOTX64.EFI]
|
||||||
echo signing [/boot/efi/EFI/boot/bootx64.efi]
|
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/EFI/BOOT/BOOTX64.EFI /boot/EFI/BOOT/BOOTX64.EFI
|
||||||
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/efi/EFI/boot/bootx64.efi /boot/efi/EFI/boot/bootx64.efi
|
|
||||||
echo signing [/boot/vmlinuz-linux]
|
echo signing [/boot/vmlinuz-linux]
|
||||||
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/vmlinuz-linux /boot/vmlinuz-linux
|
sudo sbsign --key /etc/refind.d/keys/refind_local.key --cert /etc/refind.d/keys/refind_local.crt --output /boot/vmlinuz-linux /boot/vmlinuz-linux
|
||||||
|
|
||||||
|
echo -e "\033[0;32m[SECUREBOOT]\033[0m installing update-secureboot script to /usr/bin/update-secureboot"
|
||||||
|
sudo cp .refind/update-secureboot /usr/bin/update-secureboot
|
||||||
|
|
||||||
|
|
||||||
|
echo -e "\033[0;32m[SECUREBOOT]\033[0m installing pacman hook for automatic secureboot updates"
|
||||||
|
sudo mkdir -p /etc/pacman.d/hooks/
|
||||||
|
sudo cp .refind/update-secureboot.hook /etc/pacman.d/hooks/update-secureboot.hook
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_theme(){
|
install_theme(){
|
||||||
sudo mkdir -p /boot/efi/EFI/refind/themes
|
sudo mkdir -p /boot/EFI/refind/themes
|
||||||
git clone https://github.com/catppuccin/refind.git catppuccin
|
git clone https://github.com/catppuccin/refind.git catppuccin
|
||||||
cp catppuccin/assets/mocha/icons/os_arch.png catppuccin/assets/mocha/icons/os_endeavouros.png
|
cp catppuccin/assets/mocha/icons/os_arch.png catppuccin/assets/mocha/icons/os_endeavouros.png
|
||||||
sudo cp -rf catppuccin /boot/efi/EFI/refind/themes/
|
sudo cp -rf catppuccin /boot/EFI/refind/themes/
|
||||||
sudo rm $REFINDCONF
|
sudo rm $REFINDCONF
|
||||||
sudo cp .refind/refind.conf $REFINDCONF
|
sudo cp .refind/refind.conf $REFINDCONF
|
||||||
rm -rf catppuccin
|
rm -rf catppuccin
|
||||||
|
|
Loading…
Add table
Reference in a new issue