diff options
author | Lothar Serra Mari <mail@serra.me> | 2020-05-09 09:46:45 +0200 |
---|---|---|
committer | Lothar Serra Mari <mail@serra.me> | 2020-05-09 09:46:45 +0200 |
commit | 1da62330b78d462b885e16d038b8439bd2144fae (patch) | |
tree | 0fb6cd5e0ea4e0be23e97a2077cff0eb5bf91f11 /install.sh | |
parent | 71b59d279a49de39da0bee41019e2662c90dba32 (diff) | |
download | gentoox-1da62330b78d462b885e16d038b8439bd2144fae.tar.gz gentoox-1da62330b78d462b885e16d038b8439bd2144fae.tar.bz2 gentoox-1da62330b78d462b885e16d038b8439bd2144fae.zip |
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.
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |