From: Jeff Mahoney Subject: [PATCH] Alias "gfxboot" to "ui gfxboot" This patch allows older configs using the SUSE implementation of syslinux + gfxboot to continue to use the "gfxboot" keyword. It is intentionally undocumented since it should not be used in new configurations. Signed-off-by: Jeff Mahoney --- core/keywords | 1 + core/keywords.inc | 1 + core/parseconfig.inc | 15 +++++++++++++++ 3 files changed, 17 insertions(+) --- a/core/keywords +++ b/core/keywords @@ -6,6 +6,7 @@ initrd config default ui +gfxboot display font implicit --- a/core/keywords.inc +++ b/core/keywords.inc @@ -90,6 +90,7 @@ keywd_table: keyword f0, pc_filename, FKeyN(10) keyword f11, pc_filename, FKeyN(11) keyword f12, pc_filename, FKeyN(12) + keyword gfxboot, pc_gfxboot %if IS_PXELINUX keyword ipappend, pc_ipappend %endif --- a/core/parseconfig.inc +++ b/core/parseconfig.inc @@ -30,6 +30,20 @@ pc_default: cmp ax,[DefaultLevel] ret ; +; "gfxboot" command; Shorthand for "ui gfxboot" +; +pc_gfxboot: + mov ax,2 + mov [DefaultLevel],ax ; Setup UI mode + mov si,gfxboot_cmd + mov di,default_cmd + call strcpy + dec di + call getline + mov byte [di-1],0 ; null-terminate + ret + +; ; "ontimeout" command ; pc_ontimeout: mov di,Ontimeout @@ -438,6 +452,7 @@ commit_vk: section .data vk_overflow_msg db 'Out of memory parsing config file', CR, LF, 0 SerialNotice db 1 ; Only print this once +gfxboot_cmd db 'gfxboot ', 0 section .bss alignb 4