Bug 130154

Summary: mkinitrd is not fully compatible with software suspend 2
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dennis Lubert <plasmahh>
Component: KernelAssignee: Andreas Gruenbacher <agruen>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dennis Lubert 2005-10-22 14:10:52 UTC
Hi,

although I don't know if the SuSE system supports software suspend 2
(suspend2.net) it would be really easy to have mkinitrd support it. (Many people
need to use suspend2 as its the only one that seems to work well with some
hardware). One of the first things after mounting proc and sys in a initrd
should be to do a 

echo > /proc/suspend2/do_resume

when suspend2 is active. This will do a check if the system has previously
suspended and if, will resume the system. The SuSE mkinitrd should put this line
right after the mounting of proc and sys in linuxrc script on a initrd.

If wanted, there can be added further support in adding the suspend2 userui
programs to the initrd to have splashscreen at resuming first stage too.
Comment 1 Pavel Machek 2005-10-24 12:10:36 UTC
No, we are not supporting suspend2. And no, we are not going to add echo to non-existing file to our initrd.
Comment 2 Dennis Lubert 2005-10-24 20:34:36 UTC
could you perhaps add a 

test -f /proc/suspend2/do_resume && echo > /proc/suspend2/do_resume

?? whats so bad about suspend2 to give such a rude answer ? Im not asking for full blown suspend2 support with userui setup etc. but only for this little thing. some people need to use suspend2 and I personally had 3 days of "fun" recovering a completely trashed filesystem due to this line missing, because I forgot to change my mkinitrd script.