Update pikainstall/usr/lib/pika/pikainstall/pika-install-chroot.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-12-18 19:51:04 +01:00
parent 438a17545c
commit 1718e2d706

View File

@ -47,7 +47,7 @@ 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_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')" 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" efibootmgr -c -d "$REFIND_EFI_PART_BLOCK" -p "$REFIND_EFI_PART_DEVICE_NUM" -L "PikaOS Boot Manager" -l "\EFI\BOOT\BOOTX64.EFI"
# Change refind configration # Change refind configuration
sed -i '/^[^#]*showtools/s/^/#/' /boot/efi/EFI/BOOT/refind.conf sed -i '/^[^#]*showtools/s/^/#/' /boot/efi/EFI/BOOT/refind.conf
# Remove installer from installed system # Remove installer from installed system
echo 'LIVE_REMOVE' | nc -U $SOCKET_PATH || true echo 'LIVE_REMOVE' | nc -U $SOCKET_PATH || true