Comment 22 for bug 499940

Peter Clifton (pcjc2) wrote :

Apparently not enough, wait-for-root returns the swap type as swsuspend, and the resume script doesn't know that. I've fixed that too:

--- initramfs-tools-0.92bubuntu65/scripts/local-premount/resume 2010-02-17 12:35:26.000000000 +0000
+++ initramfs-tools-0.92bubuntu65+pcjc2.1/scripts/local-premount/resume 2010-02-21 16:29:24.000000000 +0000
@@ -24,7 +24,7 @@
 SWAPTYPE=$(wait-for-root "${resume}" ${RESUMEDELAY:-5})

 case "${SWAPTYPE}" in
- s1suspend|s2suspend|ulsuspend|tuxonice)
+ swsuspend|s1suspend|s2suspend|ulsuspend|tuxonice)
        # hardcode path, uswsusp ships an resume binary too
        if [ -n "${resume_offset}" ]; then
                /bin/resume ${resume} ${resume_offset} >/dev/null 2>&1

Now my machine resumes ok.