Hi, i am updating the mkinitrd for the next openSUSE factory release to be able to use userspace suspend. However, i'd like to still be able to use the same initrd with in-kernel suspend, so switching temporarily back to an old kernel will not be too complicated.
I am right now doing this: if [ "$resume_mode" != "off" ]; then if [ -e "$uresumedev" -a -x /sbin/resume ]; then /sbin/resume fi if [ -e $resumedev ] ; then # Try major:minor number of the device node devn=$(devnumber $resumedev) major=$(devmajor $devn) minor=$(devminor $devn) fi if [ -n "$major" -a -n "$minor" ]; then echo "$major:$minor" > /sys/power/resume else echo "resume device $resumedev not found (ignoring)" fi fi Because if /sbin/resume won't return if it finds a valid uswsusp image, everything should be fine. However, i am not sure if it might (by accident) find a valid uswsusp image in a swsusp partition. It worked fine for me in my tests, but maybe i was just lucky... I'd guess it is ok because of: swsusp.h:#define SWSUSP_SIG "ULSUSPEND" swap.c:#define SWSUSP_SIG "S1SUSPEND" but since this is a "lose your data if this happens" issue, i'd like to get this confirmed ;-) -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel