initial commit
This commit is contained in:
parent
1e703c650d
commit
db45e2d0ff
3 changed files with 37 additions and 2 deletions
0
Scripts/.refind/refind.conf
Normal file
0
Scripts/.refind/refind.conf
Normal file
|
@ -3,7 +3,6 @@ kicad
|
||||||
kicad-library
|
kicad-library
|
||||||
kicad-library-3d
|
kicad-library-3d
|
||||||
gnome-boxes
|
gnome-boxes
|
||||||
refind
|
|
||||||
shim-signed
|
shim-signed
|
||||||
cava
|
cava
|
||||||
spotify-launcher
|
spotify-launcher
|
||||||
|
|
|
@ -1,2 +1,38 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "custom_pst.sh empty...skipping"
|
|
||||||
|
|
||||||
|
REFINDCONF="/boot/efi/EFI/refind/refind.conf"
|
||||||
|
|
||||||
|
install_secureboot(){
|
||||||
|
sudo pacman -S sbsigntools efitools refind
|
||||||
|
echo "[sbsigntools, efitools, refind] installed, press any key to continue ..."
|
||||||
|
sudo refind-install --shim /usr/share/shim-signed/shimx64.efi --localkeys
|
||||||
|
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/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]
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
install_theme(){
|
||||||
|
sudo mkdir -p /boot/efi/EFI/refind/themes
|
||||||
|
git clone https://github.com/catppuccin/refind.git catppuccin
|
||||||
|
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 rm $REFINDCONF
|
||||||
|
sudo cp .refind/refind.conf $REFINDCONF
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check with sudo
|
||||||
|
if sudo [ -f "$REFINDCONF" ]; then
|
||||||
|
echo "The file '$REFINDCONF' exists, skipping refind installation"
|
||||||
|
else
|
||||||
|
echo "refind not installed, installing now"
|
||||||
|
install_secureboot
|
||||||
|
install_theme
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue