Comment 19 for bug 1453738

Revision history for this message
Vindicator (vindicator) wrote : Re: Keeps asking for cryptswap password when booting (LVM + encrypted home dir)

Mmmm, ya, forget about MBR. Just wasn't going to get it without a good bit of effort I think.
Also noticed that I kept having to reboot because LiveCD was using the sda swap partition. Once I swapoff, I wouldn't have to reboot.

So going back to a fresh install with UEFI, GPT, LVM, Encrypted Drive and Home, I thought I'd post the pertinent journalctl output containing references to swap since I didn't see it already posted:
*****
$ journalctl | grep swap
May 31 03:46:40 ubuntu os-prober[7441]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/ubuntu--vg-swap_1
May 31 03:46:40 ubuntu 50mounted-tests[7447]: debug: /dev/mapper/ubuntu--vg-swa_1 is a swap partition; skipping
May 31 03:46:40 ubuntu ubiquity[2983]: Device /dev/mapper/ubuntu--vg-swap_1 not found in os-prober output
May 31 03:47:21 ubuntu partman-lvm[8261]: Logical volume "swap_1" successfully removed
May 31 03:47:32 ubuntu partman-lvm[11536]: Logical volume "swap_1" created
May 31 03:47:58 ubuntu kernel: Adding 7815164k swap on /dev/mapper/ubuntu--vg-swap_1. Priority:-1 extents:1 across:7815164k FS
May 31 03:48:15 ubuntu ubiquity[16198]: INFO: Setting up swap: [/dev/dm-2]
May 31 03:48:15 ubuntu ubiquity[16198]: INFO: Successfully encrypted swap!
May 31 03:51:28 ubuntu ubiquity[15362]: * cryptswap1 (starting)..
May 31 03:51:34 ubuntu ubiquity[15362]: * cryptswap1 (started)...
May 31 03:51:34 ubuntu kernel: Adding 7814652k swap on /dev/mapper/cryptswap1. Priority:-1 extents:1 across:7814652k FS
May 31 03:53:30 ubuntu ubiquity[20109]: cryptsetup: WARNING: target cryptswap1 has a random key, skipped
May 31 03:54:28 ubuntu os-prober[31264]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/ubuntu--vg-swap_1
May 31 03:54:28 ubuntu 50mounted-tests[31270]: debug: /dev/mapper/ubuntu--vg-swap_1 is a swap partition; skipping
May 31 03:54:38 ubuntu os-prober[32462]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/ubuntu--vg-swap_1
May 31 03:54:38 ubuntu 50mounted-tests[32468]: debug: /dev/mapper/ubuntu--vg-swap_1 is a swap partition; skipping
May 31 03:56:33 ubuntu ubiquity[16452]: cryptsetup: WARNING: target cryptswap1 has a random key, skipped
*****