summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-05-31 19:21:11 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-06 10:35:57 +0200
commitda8422ff1d6448480f80f582eaae625c72bd4c26 (patch)
treed70ca6bda30d4330653bf185840d573fd2218e20 /perl-install/bootloader.pm
parentc9eb5ee182d8cec12c9b17aa85dcac72bacf4b5f (diff)
downloaddrakx-da8422ff1d6448480f80f582eaae625c72bd4c26.tar
drakx-da8422ff1d6448480f80f582eaae625c72bd4c26.tar.gz
drakx-da8422ff1d6448480f80f582eaae625c72bd4c26.tar.bz2
drakx-da8422ff1d6448480f80f582eaae625c72bd4c26.tar.xz
drakx-da8422ff1d6448480f80f582eaae625c72bd4c26.zip
only overwrite GRUB_CMDLINE_LINUX_DEFAULT on first install (mga#18112)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 247125b28..e6409a62e 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1805,7 +1805,11 @@ sub write_grub2 {
my $f = "$::prefix/etc/default/grub";
my %conf = getVarsFromSh($f);
- $conf{GRUB_CMDLINE_LINUX_DEFAULT} = get_grub2_append($bootloader);
+
+ # First installation or migration from grub-legacy/lilo?
+ if (! -f get_grub2_install_sh()) {
+ $conf{GRUB_CMDLINE_LINUX_DEFAULT} = get_grub2_append($bootloader);
+ }
$conf{GRUB_GFXPAYLOAD_LINUX} = 'auto' if is_uefi();
$conf{GRUB_DISABLE_RECOVERY} = 'false'; # for 'failsafe' entry
$conf{GRUB_TIMEOUT} = $bootloader->{timeout};