diff options
author | Thierry Vignaud <tvignaud@redhat.com> | 2016-05-27 16:38:51 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-06 10:35:57 +0200 |
commit | ad128f02d165f26d7eec3781952f108efb588c67 (patch) | |
tree | f246876fcd07267e27b95497a0f15755699a7a4e /perl-install/bootloader.pm | |
parent | da8422ff1d6448480f80f582eaae625c72bd4c26 (diff) | |
download | drakx-ad128f02d165f26d7eec3781952f108efb588c67.tar drakx-ad128f02d165f26d7eec3781952f108efb588c67.tar.gz drakx-ad128f02d165f26d7eec3781952f108efb588c67.tar.bz2 drakx-ad128f02d165f26d7eec3781952f108efb588c67.tar.xz drakx-ad128f02d165f26d7eec3781952f108efb588c67.zip |
grub2: set GRUB_DEFAULT + GRUB_SAVEDEFAULT
else grub2-set-default won't work (mga#9627, mga#16059)
but do not overwrite it if user has changed its value
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index e6409a62e..8e70805e1 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1812,6 +1812,8 @@ sub write_grub2 { } $conf{GRUB_GFXPAYLOAD_LINUX} = 'auto' if is_uefi(); $conf{GRUB_DISABLE_RECOVERY} = 'false'; # for 'failsafe' entry + $conf{GRUB_DEFAULT} ||= 'saved'; # for default entry but do not overwrite user choice + $conf{GRUB_SAVEDEFAULT} ||= 'true'; # for default entry but do not overwrite user choice $conf{GRUB_TIMEOUT} = $bootloader->{timeout}; renamef($f, $f . ($o_backup_extension || '.old')); setVarsInSh($f, \%conf); |