summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildlive7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildlive b/buildlive
index 4d5d52c..1831577 100755
--- a/buildlive
+++ b/buildlive
@@ -111,6 +111,9 @@ do
done
if [ "$INSTALL_GRUB" == 1 ]; then
- as-root grub-install --boot-directory="$ROOTPATH" --target=i386-pc "$DEVNAME"
- as-root grub-install --boot-directory="$ROOTPATH" --efi-directory="$ROOTPATH" --bootloader-id=grub --target=x86_64-efi --removable --no-nvram "$DEVNAME"
+ read -p 'Answer Y to install GRUB.[Y/n] '
+ if [[ "$REPLY" =~ ^[Yy]|^$ ]]; then
+ as-root grub-install --boot-directory="$ROOTPATH" --target=i386-pc "$DEVNAME"
+ as-root grub-install --boot-directory="$ROOTPATH" --efi-directory="$ROOTPATH" --bootloader-id=grub --target=x86_64-efi --removable --no-nvram "$DEVNAME"
+ fi
fi