diff --git a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh index 9d129d8..941fd4c 100755 --- a/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh +++ b/pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh @@ -42,6 +42,11 @@ echo 'BOOTLOADER' | nc -U $SOCKET_PATH || true chmod +x /var/albius-refind_linux.sh /var/albius-refind_linux.sh apt install -y /var/cache/apt/archives/pika-refind-theme*.deb /var/cache/apt/archives/booster*.deb +# Add Refind Boot Entry +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" # Remove installer from installed system echo 'LIVE_REMOVE' | nc -U $SOCKET_PATH || true apt remove pika-live-booster-hooks pika-installer-gtk4 -y || true