Bug 130154 - mkinitrd is not fully compatible with software suspend 2
Summary: mkinitrd is not fully compatible with software suspend 2
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Andreas Gruenbacher
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 14:10 UTC by Dennis Lubert
Modified: 2005-10-24 20:34 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.