fix grub save default
This commit is contained in:
parent
2f15a20b98
commit
c7e68f8aa0
1 changed files with 3 additions and 1 deletions
|
@ -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_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_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_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
|
if [ "y" == "${lvmsupport}" ]; then
|
||||||
cryptdevicesystem="${devicelvmname}"
|
cryptdevicesystem="${devicelvmname}"
|
||||||
|
@ -790,7 +793,6 @@ function grubinstall() {
|
||||||
echo "GRUB_CMDLINE_LINUX_DEFAULT_ALT=\"${parameter}\"" >> ${mountpoint}/etc/default/grub
|
echo "GRUB_CMDLINE_LINUX_DEFAULT_ALT=\"${parameter}\"" >> ${mountpoint}/etc/default/grub
|
||||||
|
|
||||||
echo "GRUB_DISABLE_OS_PROBER=true" >> ${mountpoint}/etc/default/grub
|
echo "GRUB_DISABLE_OS_PROBER=true" >> ${mountpoint}/etc/default/grub
|
||||||
echo "GRUB_SAVEDEFAULT=true" >> ${mountpoint}/etc/default/grub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function btrfsformat() {
|
function btrfsformat() {
|
||||||
|
|
Loading…
Reference in a new issue