I tried another way to check if there has been a hibernation or not.
I found useful the blkid utility (which is included already in the initramfs 
image).
I may pass a device name as well as an offset to blkid to check the contents of 
the device.
In turn, it prints various info but now I'm interested only in the 'type' info, 
which appears to be the same of the udev one with the exception that it can 
check at an arbitrary offset.

So, I made a new patch to be applied to /usr/share/initramfs-
tools/scripts/local-premount/resume file.

Please find it here attached.

I think I still need to call wait-for-root to wait for the device to
appear, although I'm not completely sure about it.

I'd like to hear comments about this patch.


** Patch added: "Added a further check with blkid."
   http://launchpadlibrarian.net/47207465/resume.patch

-- 
Resume from disk (swapfile) fails
https://bugs.launchpad.net/bugs/554009
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to