From fc820d7d12cf90ae8b4ed9c88419f999a0ce0004 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 4 Oct 2017 17:04:20 -0700 Subject: [PATCH] GRUB installer option --- dont_run_me.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dont_run_me.sh b/dont_run_me.sh index 5d9c8b4..99cfe48 100644 --- a/dont_run_me.sh +++ b/dont_run_me.sh @@ -50,6 +50,16 @@ genfstab -U /mnt >> /mnt/etc/fstab curl http://lukesmith.xyz/larbs/root.sh > /mnt/root.sh && arch-chroot /mnt bash root.sh && rm /mnt/root.sh +grubinst() { pacman -S grub && grub-install --target=i386-pc /dev/sda ;} + +echo "Install and configure GRUB bootloader? [y/N]" +read yn +case $yn in + [Yy]* ) grubinst ;; + [yes]* ) grubinst ;; + [Yes]* ) grubinst ;; +esac + echo "Eject CD/ROM? [y/N]" read yn case $yn in @@ -66,7 +76,7 @@ case $yn in [Yes]* ) reboot ;; esac -echo "Return to chroot environment?" +echo "Return to chroot environment? [y/N]" read yn case $yn in [Yy]* ) arch-chroot /mnt ;;