From 1da62330b78d462b885e16d038b8439bd2144fae Mon Sep 17 00:00:00 2001 From: Lothar Serra Mari Date: Sat, 9 May 2020 09:46:45 +0200 Subject: Fix checking for UEFI_MODE during GRUB setup In the chrooted script, the UEFI_MODE variable needs to be properly escaped. Otherwise the check will fail since in non-UEFI mode, the variable is completely empty, breaking the check and the GRUB installation. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index f22f4ab..e005e07 100755 --- a/install.sh +++ b/install.sh @@ -157,7 +157,7 @@ unsquashfs -f -d /mnt/install/ /mnt/cdrom/image.squashfs echo -e "extraction complete.\n" read -erp "set hostname: " -i "gentoox" hostname -read -erp "set domain name " -i "haxx.dafuq" domainname +read -erp "set domain name: " -i "haxx.dafuq" domainname read -erp "set username: " -i "gentoox" username read -erp "set user password: " -i "gentoox" userpassword read -erp "set root password: " -i "gentoox" rootpassword @@ -192,7 +192,7 @@ if [[ $username != "gentoox" ]]; then fi yes $userpassword | passwd $username -if [[ ! -z $UEFI_MODE ]]; then +if [[ ! -z "$UEFI_MODE" ]]; then grub-install --target=x86_64-efi else grub-install --target=i386-pc $drive -- cgit v1.2.3