diff options
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 6 |
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}; |