Fix: missing grub-mkconfig call
This commit is contained in:
parent
37f33c9a1a
commit
2c9759ac34
@ -52,7 +52,7 @@ setup_grub()
|
|||||||
if [[ $BOOT_DEVICE == "" ]]; then
|
if [[ $BOOT_DEVICE == "" ]]; then
|
||||||
select_device 'boot' || return 1
|
select_device 'boot' || return 1
|
||||||
fi
|
fi
|
||||||
BCMDS[grub]+=" --target=i386-pc $BOOT_DEVICE"
|
BCMDS[grub]+=" --target=i386-pc $BOOT_DEVICE && grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
else
|
else
|
||||||
if [[ $ROOT_PART =~ /dev/mapper && ! $LVM && ! $LUKS_PASS ]]; then
|
if [[ $ROOT_PART =~ /dev/mapper && ! $LVM && ! $LUKS_PASS ]]; then
|
||||||
luks_pass "$_LuksOpen" "$ROOT_PART" || return 1
|
luks_pass "$_LuksOpen" "$ROOT_PART" || return 1
|
||||||
@ -66,9 +66,10 @@ setup_grub()
|
|||||||
|
|
||||||
# the mount mess is needed for os-prober to work properly in the chroot
|
# the mount mess is needed for os-prober to work properly in the chroot
|
||||||
BCMDS[grub]="mkdir -p /run/udev && mkdir -p /run/lvm &&
|
BCMDS[grub]="mkdir -p /run/udev && mkdir -p /run/lvm &&
|
||||||
mount --bind /hostrun/udev /run/udev && mount --bind /hostrun/lvm /run/lvm &&
|
mount --bind /hostrun/udev /run/udev && mount --bind /hostrun/lvm /run/lvm &&
|
||||||
${BCMDS[grub]} --target=$ttype --efi-directory=${BMNTS[UEFI-grub]} --bootloader-id=$DIST &&
|
${BCMDS[grub]} --target=$ttype --efi-directory=${BMNTS[UEFI-grub]} --bootloader-id=$DIST &&
|
||||||
umount /run/udev && umount /run/lvm"
|
grub-mkconfig -o /boot/grub/grub.cfg &&
|
||||||
|
umount /run/udev && umount /run/lvm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
@ -73,7 +73,7 @@ die()
|
|||||||
sigint()
|
sigint()
|
||||||
{
|
{
|
||||||
# used to trap SIGINT and cleanly exit the program
|
# used to trap SIGINT and cleanly exit the program
|
||||||
printf "\n** CTRL-C caught"
|
printf "\nCTRL-C caught\nCleaning up...\n"
|
||||||
die 1
|
die 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user