Rename bootloader configuration to be more appropriate

This commit is contained in:
Salt 2020-12-04 06:23:05 -06:00
parent 6a3344deea
commit 5c007145ba

View File

@ -13,7 +13,7 @@ declare -r _name="$(basename -- "$0")"
# Options # Options
declare -i _optconfigure declare -i _optconfigure
declare -i _optchroot declare -i _optchroot
declare -i _optchroot2 declare -i _optbootloader
declare _optdest="/mnt" declare _optdest="/mnt"
declare _optprofile="desktop" declare _optprofile="desktop"
declare -i _opthelp declare -i _opthelp
@ -307,7 +307,7 @@ build-gentoo-chroot() {
EOF EOF
exec bash exec bash
} }
build-gentoo-chroot2() { build-bootloader() {
# Last few chroot steps, mostly involving GRUB # Last few chroot steps, mostly involving GRUB
read -p "Enter device to install GRUB to: " grubdev read -p "Enter device to install GRUB to: " grubdev
log "Configuring GRUB" log "Configuring GRUB"
@ -334,7 +334,7 @@ main() {
_optchroot=1 _optchroot=1
;; ;;
d) d)
_optchroot2=1 _optbootloader=1
;; ;;
h) h)
_opthelp=1 _opthelp=1
@ -369,8 +369,8 @@ main() {
fi fi
# Do the do # Do the do
if [ -n "$_optchroot2" ]; then if [ -n "$_optbootloader" ]; then
build-gentoo-chroot2 build-bootloader
elif [ -n "$_optchroot" ]; then elif [ -n "$_optchroot" ]; then
build-gentoo-chroot build-gentoo-chroot
elif [ -n "$_optconfigure" ]; then elif [ -n "$_optconfigure" ]; then