diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-02-05 01:14:23 +0159 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-02-05 01:14:23 +0159 |
commit | a87029bb51f98212171ddc62e144511b715587b7 (patch) | |
tree | e57b721e2be0df99091f440ba98399f59b7a2988 /perl-install/install/gtk.pm | |
parent | 03d7d48114f72ac6762a6e236799ac93d9e04303 (diff) | |
download | drakx-a87029bb51f98212171ddc62e144511b715587b7.tar drakx-a87029bb51f98212171ddc62e144511b715587b7.tar.gz drakx-a87029bb51f98212171ddc62e144511b715587b7.tar.bz2 drakx-a87029bb51f98212171ddc62e144511b715587b7.tar.xz drakx-a87029bb51f98212171ddc62e144511b715587b7.zip |
fix stage2 loading graphical installer in efi mode
Diffstat (limited to 'perl-install/install/gtk.pm')
-rw-r--r-- | perl-install/install/gtk.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm index f502b4f06..c806090a4 100644 --- a/perl-install/install/gtk.pm +++ b/perl-install/install/gtk.pm @@ -254,7 +254,10 @@ sub createXconf { return if !$Driver; - my $resolution = $Driver eq 'fbdev' ? '"default"' : '"800x600" "640x480"'; + # grub2-efi init framebuffer in 1024x768, we must stay in sync or loading fails + my $resolution = $Driver eq 'fbdev' ? is_uefi() ? '"1024x768"' : '"default"' : '"800x600" "640x480"'; + # efi framebuffer wants 24 bit + my $depth = is_uefi() ? '24' : '16'; output($file, qq(Section "ServerFlags" EndSection @@ -281,9 +284,9 @@ Section "Screen" Identifier "screen" Device "device" Monitor "monitor" - DefaultColorDepth 16 + DefaultColorDepth $depth Subsection "Display" - Depth 16 + Depth $depth Modes $resolution EndSubsection EndSection |