From 11649450e315641453da0985c45c926399c3e4c7 Mon Sep 17 00:00:00 2001 From: Chrysostomus Date: Fri, 2 Feb 2018 15:05:18 +0200 Subject: [PATCH] Don't save default boot entry with lvm to avoid errors --- lib/util-base.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util-base.sh b/lib/util-base.sh index 429427a..c1bb15e 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -521,6 +521,7 @@ bios_bootloader() { # if /boot is LVM (whether using a seperate /boot mount or not), amend grub if ( [[ $LVM -eq 1 ]] && [[ $LVM_SEP_BOOT -eq 0 ]] ) || [[ $LVM_SEP_BOOT -eq 2 ]]; then sed -i "s/GRUB_PRELOAD_MODULES=\"/GRUB_PRELOAD_MODULES=\"lvm /g" ${MOUNTPOINT}/etc/default/grub + sed -e '/GRUB_SAVEDEFAULT/ s/^#*/#/' -i ${MOUNTPOINT}/etc/default/grub fi # If encryption used amend grub