larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fc820d7d12cf90ae8b4ed9c88419f999a0ce0004
parent cd07bb2058de66db3e4d2702e728cb2587efea73
Author: Luke <luke@lukesmith.xyz>
Date:   Wed,  4 Oct 2017 17:04:20 -0700

GRUB installer option

Diffstat:
Mdont_run_me.sh | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git 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 ;;