summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-07-24 23:07:38 +0100
committerThomas Backlund <tmb@mageia.org>2018-01-09 23:04:54 +0200
commitf70da6dee2087dbcb26e1ae6e00c5ea859c0c787 (patch)
tree7aa77184b11456258550442d3247248917cf8319 /perl-install/any.pm
parenta2594a936ea91a08881cb40e056f1407065a2ee6 (diff)
downloaddrakx-f70da6dee2087dbcb26e1ae6e00c5ea859c0c787.tar
drakx-f70da6dee2087dbcb26e1ae6e00c5ea859c0c787.tar.gz
drakx-f70da6dee2087dbcb26e1ae6e00c5ea859c0c787.tar.bz2
drakx-f70da6dee2087dbcb26e1ae6e00c5ea859c0c787.tar.xz
drakx-f70da6dee2087dbcb26e1ae6e00c5ea859c0c787.zip
Fix drakboot video mode selection when using grub2 (mga#21246)
The video mode needs to be extracted from and written back to the GRUB_CMDLINE_LINUX_DEFAULT parameter in /etc/defaults/grub2. This fix creates a new "default_vga" key in the $bootloader hash to hold the current selection. Using the existing "vga" key would cause the default video mode to be added to any bootloader entries that don't have a specific "vga" value, e.g. the "failsafe" entry. The $bootloader "vga" value doesn't appear to be set anywhere else, so may in fact be obsolete.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 376240aac..a82fce94a 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -632,7 +632,7 @@ sub setupBootloader__grub2 {
require Xconfig::resolution_and_depth;
require network::network; #- to list network profiles
- my $vga = Xconfig::resolution_and_depth::from_bios($b->{vga});
+ my $vga = Xconfig::resolution_and_depth::from_bios($b->{default_vga});
my $os_prober = $in->do_pkgs->is_installed('os-prober', '/usr/bin/os-prober');
my $res = $in->ask_from_(
@@ -660,7 +660,7 @@ sub setupBootloader__grub2 {
if ($res) {
$b->{entries} = $b2->{entries};
$b->{default} = $default;
- $b->{vga} = ref($vga) ? $vga->{bios} : $vga;
+ $b->{default_vga} = ref($vga) ? $vga->{bios} : $vga;
$b->{perImageAppend} = $append;
if ($os_prober) {
$in->do_pkgs->ensure_is_installed('os-prober', '/usr/bin/os-prober');