summaryrefslogtreecommitdiffstats
path: root/src/common.inc
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-06-19 18:18:03 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-06-22 18:24:14 +0100
commit5ed51c93f747126b7ce54ead783e40f65cf25282 (patch)
tree74f8785750654c6b202846293a730494d44fd65e /src/common.inc
parenta157450c3ab2b1432dfd4301c86c721ee9fba21a (diff)
downloadbootloader-theme-5ed51c93f747126b7ce54ead783e40f65cf25282.tar
bootloader-theme-5ed51c93f747126b7ce54ead783e40f65cf25282.tar.gz
bootloader-theme-5ed51c93f747126b7ce54ead783e40f65cf25282.tar.bz2
bootloader-theme-5ed51c93f747126b7ce54ead783e40f65cf25282.tar.xz
bootloader-theme-5ed51c93f747126b7ce54ead783e40f65cf25282.zip
Reenable use of F3 to set video resolution in isolinux bootloader.
This is one part of a fix for mga#20624. F3 has not had any effect since commit 4ca721b1fe6022c985ab7b10d1bea36f657c28b3. This is not a simple revert, as we now want it to optionally override any vga= setting in the selected boot command line.
Diffstat (limited to 'src/common.inc')
-rw-r--r--src/common.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common.inc b/src/common.inc
index 354ca04..38c93b8 100644
--- a/src/common.inc
+++ b/src/common.inc
@@ -367,6 +367,16 @@
bc.cmd exch .inp_buf get strcat " " strcat pop
+ syslinux {
+ % add video mode if selected
+ video.modes.list xmenu.video .xm_current get get
+ dup 0 gt {
+ "vga=%d " bc.cmd dup length add sprintf
+ } {
+ pop
+ } ifelse
+ } if
+
% remove all but last 'vga' & 'initrd' options
[ "vga" "initrd" ] dup {
{
@@ -1442,4 +1452,3 @@ config.welcome 0 eq or
% check for bi-arch config
check_arch_boot_dir
-