Bugzilla – Bug 130154
mkinitrd is not fully compatible with software suspend 2
Last modified: 2005-10-24 20:34:36 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.
No, we are not supporting suspend2. And no, we are not going to add echo to non-existing file to our initrd.
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.