From c7e68f8aa0e99b3552c69af5bdc77a9682fcc360 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 5 Jun 2023 18:17:48 +0200 Subject: [PATCH] fix grub save default --- arch-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch-install.sh b/arch-install.sh index b5c45cd..44e6bd4 100755 --- a/arch-install.sh +++ b/arch-install.sh @@ -745,6 +745,9 @@ function grubinstall() { #sed -i 's|#GRUB_BACKGROUND=.*$|GRUB_BACKGROUND=\"\/usr\/share\/grub\/background.png\"|' ${mountpoint}/etc/default/grub #sed -i 's|#GRUB_THEME=.*$|GRUB_THEME="\/boot\/grub\/themes\/poly-light\/theme.txt"|' ${mountpoint}/etc/default/grub sed -i 's|GRUB_GFXMODE=.*$|GRUB_GFXMODE="'$aufloesung'"|' ${mountpoint}/etc/default/grub + sed -i 's|GRUB_DEFAULT=.*$|GRUB_DEFAULT=\"saved\"|' ${mountpoint}/etc/default/grub + sed -i 's|GRUB_SAVEDEFAULT=.*$|GRUB_SAVEDEFAULT=\"true\"|' ${mountpoint}/etc/default/grub + sed -i 's|#GRUB_SAVEDEFAULT=.*$|GRUB_SAVEDEFAULT=\"true\"|' ${mountpoint}/etc/default/grub if [ "y" == "${lvmsupport}" ]; then cryptdevicesystem="${devicelvmname}" @@ -790,7 +793,6 @@ function grubinstall() { echo "GRUB_CMDLINE_LINUX_DEFAULT_ALT=\"${parameter}\"" >> ${mountpoint}/etc/default/grub echo "GRUB_DISABLE_OS_PROBER=true" >> ${mountpoint}/etc/default/grub - echo "GRUB_SAVEDEFAULT=true" >> ${mountpoint}/etc/default/grub } function btrfsformat() {