Public bug reported:

Binary package hint: uswsusp

Hi,

I have 
- a partition encrypted with cryptsetup
- a LVM volume group within that partition
- a swap device as a logical volume within this LVM used both as a swap and a 
  resume partition, for security reasons to keep it hidden under encryption.


When booting from initrd, first the cryptsetup codes asks me for the password. 
Immediately then the uswsusp resume program complains that it does not find 
the given resume partition and asks me to manually enter one. If I then enter 
the very same 
path as given in uswsusp.conf manually, it works.

Debugging revealed that after adding the encrypted LVM group, the kernel takes 
some time 
to recognize all logical volumes. At the time the local-premount script starts 
/sbin/resume, the 
device /dev/mapper/vgroup-swap simply does not yet exist. When I then enter 
that path manually, this gives
the kernel enough time (about a second) to find and create the logical device.

Solution:

The local-premount script should get the path of the device from the 
/etc/uswsusp.conf file and check whether it 
exists. If not, it should go in to a loop and check every  second (e.g. with a 
limit of 5 times) whether the device exists. 
Maybe this behavior might be applied only if the device name starts with 
/dev/mapper/...

regards
Hadmut

** Affects: uswsusp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
uswsusp initramfs-script too fast
https://bugs.launchpad.net/bugs/131830
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to