diff --git a/gentoostrap.sh b/gentoostrap.sh index 47db013..0bc1e6e 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -306,7 +306,9 @@ build-gentoo-chroot2() { # Last few chroot steps, mostly involving GRUB read -p "Enter device to install GRUB to: " grubdev log "Configuring GRUB" - grub-mkconfig -o /boot/grub + [ -f /boot/grub ] && rm /boot/grub -f + [ -d /boot/grub ] || mkdir /boot/grub -p + grub-mkconfig -o /boot/grub/grub.cfg log "Installing GRUB" grub-install "$grubdev" cat <<-EOF