I can reproduce this with comment 9. So the ecryptfs-setup-swap script
fails to disable the original unencrypted swap, and it also needs to add
offset= to avoid bug 953875 again. Right now we use unencrypted swap in
this scenario, which isn't intended, and get this annoying effect.
** Changed in: ecryptfs-utils (Ubuntu)
Importance: Undecided => High
** Changed in: ecryptfs-utils (Ubuntu)
Status: Confirmed => Triaged
** Description changed:
- See Bug #1447282: new bug report was asked for the combination GPT + LVM
- + encrypted home dir
+ 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 953857 again!), so that you end up with *two* swap configs
+ for one and the same partition, once unencrypted and once encrypted:
- Release: 15.04 (upgrade from 14.10)
+ fstab:
+ /dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
+ /dev/mapper/cryptswap1 none swap sw 0 0
- From Bug #1447282:
- Martin Pitt (pitti) wrote 4 hours ago: #45
- JuanYang, Martin, etc.: Your situation seems different, as you use LVM. I
don't know yet whether you also use GPT, but as it's a sufficiently different
case, please file a new bug about this. Please include the following:
+ crypttab:
+ cryptswap1 UUID=f636d7ef-9405-482d-a90a-5ba67026fcfb /dev/urandom
swap,offset=1024,cipher=aes-xts-plain64
- - output of "sudo blkid"
- - attach /etc/fstab and /etc/crypttab
- - run "sudo journalctl -b > /tmp/journal.txt" and attach /tmp/journal.txt.
-
- Thanks!
+ (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 fails.
** Information type changed from Public to Public Security
** Summary changed:
- Keeps asking for cryptswap password with using the same swap partition
encrypted and unencrypted
+ installer in LVM mode sets up broken encrypted swap, using duplicate
unencrypted swap
** Project changed: systemd => ecryptfs
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1453738
Title:
installer in LVM mode sets up broken encrypted swap, using duplicate
unencrypted swap
To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/1453738/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs