From f56bb7cd1c44fabf610ada962b494e66ff2852f9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 7 Apr 2015 10:03:43 -0400 Subject: keep vga= arg when switching to grub2 (mga#9888) --- perl-install/NEWS | 3 +++ perl-install/bootloader.pm | 3 +++ perl-install/install/NEWS | 3 +++ 3 files changed, 9 insertions(+) diff --git a/perl-install/NEWS b/perl-install/NEWS index 5dd30a0c9..6cc14258b 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,6 @@ +- drakboot: + o keep vga= parameter when switching to grub2 (mga#9888) + Version 16.78 - 7 April 2015 - drakboot: diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 3dc05d779..38dfaee7d 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1753,6 +1753,9 @@ sub write_grub2 { # set default parameters: my ($entry) = grep { $_->{kernel_or_dev} =~ /vmlin/ } @{$bootloader->{entries}}; my $append = $entry->{append}; + if (my $vga = $entry->{vga} || $bootloader->{vga}) { + $append .= " vga=$vga"; + } $append =~ s/root=\S+//g; $append =~ s/\bro\b//g; $append =~ s/\s+/ /g; diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index c1b87cf5f..ae2897af7 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- bootloader config: + o keep vga= parameter when switching to grub2 (mga#9888) + Version 16.78 - 7 April 2015 - bootloader: -- cgit v1.2.1