I can confirm that I also get the resume prompt for an LVM based swap device, running stock kernel 2.6.25-2-686.

I've spent the evening tracing through the initramfs scripts, and have determined that scripts/local-premount/uswsusp calls its resume script without having first activated the VG containing the swap partition. Consequently the partiton doesn't exist so it can't be checked.

A fix that works for me appears to be to apply the attached patch to /usr/share/initramfs-tools/scripts/local-top/lvm2 and then rerun mkinitramfs.

If I could work out how to submit this to the lvm2 maintainer I'd do that, too. You may want to reroute this there, as the patched file appears to belong to that package.

Regards,
Chris
--- /usr/share/initramfs-tools/scripts/local-top/lvm2.2008-08-21	2008-07-18 22:16:02.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/lvm2	2008-08-21 00:23:06.000000000 +0100
@@ -67,4 +67,7 @@
 activate_vg "$ROOT"
 activate_vg "$resume"
 
+test -f /etc/uswsusp.conf &&
+	activate_vg `sed -n -e 's/resume.*= *//p' /etc/uswsusp.conf`
+
 exit 0

Reply via email to