Bug 352020

Summary: Graphical failsafe mode
Product: [openSUSE] openSUSE 11.0 Reporter: Stefan Dirsch <sndirsch>
Component: YaST2Assignee: Alexander Osthof <aosthof>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None CC: coolo
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 246158    
Attachments: /home/sndirsch/yast2-bootloader-bug352020-graphical-failsafe.diff
perl-Bootloader-x11failsafe.diff

Description Stefan Dirsch 2008-01-07 15:01:34 UTC
In Bug #246158 a proposal for a graphical failsafe mode has been made, which
is supported by the openSUSE project manager (coolo). Apart from some changes in xdm init script we also need some small changes in generating /boot/grub/menu.lst.

 * use the same "vga" option value as in the non-"Failsafe" entry
 * remove "3" option (runlevel)
 * add "x11failsafe" option

I suggest to put the "vga=" option behind "showopts" so one can still edit it.
Just an example:

Before:
kernel /boot/vmlinuz root=/dev/sda5 vga=normal showopts ide=nodma apm=off
       acpi=off noresume edd=off 3

Afterwards:
kernel /boot/vmlinuz root=/dev/sda5 showopts vga=0x315 ide=nodma apm=off
       acpi=off noresume edd=off x11failsafe
Comment 1 Stefan Dirsch 2008-01-07 22:10:31 UTC
Created attachment 189633 [details]
/home/sndirsch/yast2-bootloader-bug352020-graphical-failsafe.diff

patch (completely untested) similar to this?
Comment 2 Jozef Uhliarik 2008-01-24 13:20:10 UTC
done patch is added in version 2.16.4 of bootloader
Comment 4 Stefan Dirsch 2008-04-24 12:49:01 UTC
In Beta1 the failsafe entry contains again "vga=normal" and "3" and is missing "x11failsafe". :-( I need to reopen this bugreport.
Comment 7 Stefan Dirsch 2008-04-24 19:46:05 UTC
Created attachment 210324 [details]
perl-Bootloader-x11failsafe.diff

Similar patch, this time against perl-Bootloader.
Comment 10 Alexander Osthof 2008-04-25 09:55:51 UTC
(In reply to comment #0 from Stefan Dirsch)
> I suggest to put the "vga=" option behind "showopts" so one can still edit it.

As the vga parameter is treated as an extra parameter besides the other appended parameters in perl-Bootloader, the only doable solution would be:

Before:
kernel /boot/vmlinuz root=/dev/sda5 vga=normal showopts ide=nodma apm=off
       acpi=off noresume edd=off 3

Afterwards:
kernel /boot/vmlinuz root=/dev/sda5 showopts ide=nodma apm=off
       acpi=off noresume edd=off x11failsafe vga=0x315

Would this anyway suit your needs?
Comment 11 Stefan Dirsch 2008-04-25 10:06:31 UTC
Sure, sounds perfect to me. :-)
Comment 12 Alexander Osthof 2008-04-25 11:22:44 UTC
Fixed package submitted to STABLE, thus closing RESOLVED FIXED.
Comment 13 Stefan Dirsch 2008-04-25 12:00:20 UTC
Thanks. I'll give it a try with Beta2.