diff --git a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh index cfbfcee..97ced1f 100755 --- a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh +++ b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh @@ -46,7 +46,10 @@ apt install -y /var/cache/apt/archives/pika-refind-theme*.deb /var/cache/apt/arc REFIND_EFI_PART_DEVICE="$(df -P -h -T "/boot/efi" | awk 'END{print $1}')" REFIND_EFI_PART_BLOCK=/dev/"$(lsblk -ndo pkname $REFIND_EFI_PART_DEVICE)" REFIND_EFI_PART_DEVICE_NUM="$(echo $REFIND_EFI_PART_DEVICE | sed "s#$REFIND_EFI_PART_BLOCK##" | tr -dc '0-9')" -efibootmgr -c -d "$REFIND_EFI_PART_BLOCK" -p "$REFIND_EFI_PART_DEVICE_NUM" -L "PikaOS Boot Manager" -l "\EFI\BOOT\BOOTX64.EFI" +mkdir -pv "/boot/efi/EFI/refind" +cp -vf "/boot/efi/EFI/BOOT/bootx64.efi" "/boot/efi/EFI/refind/refind_x64.efi" +efibootmgr -c -d "$REFIND_EFI_PART_BLOCK" -p "$REFIND_EFI_PART_DEVICE_NUM" -L "PikaOS Boot Manager" -l "\EFI\BOOT\bootx64.EFI" +efibootmgr -c -d "$REFIND_EFI_PART_BLOCK" -p "$REFIND_EFI_PART_DEVICE_NUM" -L "Refind Boot Manager" -l "\EFI\refind\refind_x64.efi" # Change refind configuration sed -i '/^[^#]*showtools/s/^/#/' /boot/efi/EFI/BOOT/refind.conf # Remove installer from installed system