[Bug 1453738] Re: installer in LVM mode sets up broken encrypted swap, using duplicate unencrypted swap
1453738 at bugs.launchpad.net
Wed May 4 12:06:43 UTC 2016
This bug is showing up again in 16.04.
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
installer in LVM mode sets up broken encrypted swap, using duplicate
Status in eCryptfs:
Status in ecryptfs-utils package in Ubuntu:
Status in ecryptfs-utils source package in Trusty:
Status in ecryptfs-utils source package in Utopic:
Status in ecryptfs-utils source package in Vivid:
Status in ecryptfs-utils source package in Wily:
When installing Ubuntu with "Use LVM" (but not encryption!), and
"encrypt my home dir", the installer adds the original unencrypted
swap to fstab. Then, ecryptfs-setup-swap keeps that, and additionally
configures an encrypted swap via an UUID and without offset (which
would trigger bug 953875 again!), so that you end up with *two* swap
configs for one and the same partition, once unencrypted and once
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
cryptswap1 UUID=f636d7ef-9405-482d-a90a-5ba67026fcfb /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
(UUID is for ubuntubuntu--vg-swap_1). This can't work, as the
unencrypted one is faster, so trying to set up the encrypted one
SRU TEST CASE:
- Install 15.04 with LVM (no encryption) and select "encrypt my home dir"
- Boot will ask you for a (nonexisting) passphrase for the swap partition; press Enter
- Install the update
- Reboot and verified that the bogus passphrase question is gone
- Verify that "swapon -s" has a swap partition (usually dm-2), and that /dev/mapper/cryptswap1 points to that. It should NOT be the unencrypted /dev/mapper/ubuntu--vg-swap_1!.
To manage notifications about this bug go to:
More information about the foundations-bugs