[Bug 2084089] Re: ZFS with disk encryption missing cryptoswap
Dan Bungert
2084089 at bugs.launchpad.net
Wed Oct 9 19:43:19 UTC 2024
** Changed in: subiquity (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2084089
Title:
ZFS with disk encryption missing cryptoswap
Status in subiquity package in Ubuntu:
Confirmed
Bug description:
After installing Oracular for the "Install (entire disk with ZFS plus
encryption) in Ubuntu Desktop amd64" ISO testing and rebooting the
system I noticed that the swap was not activated.
I can see this in the systemd journal
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.device: Job dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.device/start timed out.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: Timed out waiting for device dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.device - /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-dm_crypt-0.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: Dependency failed for dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.swap - /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-dm_crypt-0.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: Dependency failed for swap.target - Swaps.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: swap.target: Job swap.target/start failed with result 'dependency'.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.swap: Job dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.swap/start failed with result 'dependency'.
out 09 19:25:13 danilo-Aspire-ES1-572 systemd[1]: dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.device: Job dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dPLAIN\x2ddm_crypt\x2d0.device/start failed with result 'timeout'.
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 74,2M 1 loop /snap/core22/1621
loop2 7:2 0 11,7M 1 loop /snap/desktop-security-center/32
loop3 7:3 0 272M 1 loop /snap/firefox/5091
loop4 7:4 0 10,7M 1 loop /snap/firmware-updater/127
loop5 7:5 0 505,1M 1 loop /snap/gnome-42-2204/176
loop6 7:6 0 89,7M 1 loop /snap/gtk-common-themes/1536
loop7 7:7 0 14M 1 loop /snap/prompting-client/51
loop8 7:8 0 10,7M 1 loop /snap/snap-store/1218
loop9 7:9 0 564K 1 loop /snap/snapd-desktop-integration/247
loop10 7:10 0 38,8M 1 loop /snap/snapd/21759
loop11 7:11 0 149,9M 1 loop /snap/thunderbird/526
sda 8:0 0 223,6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part
├─sda3 8:3 0 4G 0 part
└─sda4 8:4 0 217,6G 0 part
sr0 11:0 1 1024M 0 rom
zd0 230:0 0 20M 0 disk
└─keystore-rpool 252:0 0 4M 0 crypt /run/keystore/rpool
# ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 236 out 9 19:23 control
lrwxrwxrwx 1 root root 7 out 9 19:23 keystore-rpool -> ../dm-0
# cat /etc/crypttab
dm_crypt-0 PARTUUID=e3ce6d46-c340-4d83-b40f-87eeff46c4bc /dev/urandom cipher=aes-cbc-essiv:sha256,initramfs,plain,size=256,swap
root at danilo-Aspire-ES1-572:~#
# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 out 9 19:23 ata-HL-DT-ST_DVDRAM_GUE1N_KXKG7P34019 -> ../../sr0
lrwxrwxrwx 1 root root 9 out 9 19:23 ata-SanDisk_SSD_PLUS_240_GB_174336804972 -> ../../sda
lrwxrwxrwx 1 root root 10 out 9 19:23 ata-SanDisk_SSD_PLUS_240_GB_174336804972-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 out 9 19:23 ata-SanDisk_SSD_PLUS_240_GB_174336804972-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 out 9 19:23 ata-SanDisk_SSD_PLUS_240_GB_174336804972-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 out 9 19:23 ata-SanDisk_SSD_PLUS_240_GB_174336804972-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 out 9 19:23 dm-name-keystore-rpool -> ../../dm-0
lrwxrwxrwx 1 root root 10 out 9 19:23 dm-uuid-CRYPT-LUKS2-c09e07539b4c4db39637f9503b6eca56-keystore-rpool -> ../../dm-0
lrwxrwxrwx 1 root root 9 out 9 19:23 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 out 9 19:23 wwn-0x5001b448b64d0ef0 -> ../../sda
lrwxrwxrwx 1 root root 10 out 9 19:23 wwn-0x5001b448b64d0ef0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 out 9 19:23 wwn-0x5001b448b64d0ef0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 out 9 19:23 wwn-0x5001b448b64d0ef0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 out 9 19:23 wwn-0x5001b448b64d0ef0-part4 -> ../../sda4
For comparison this is on my laptop:
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/grub
│ /boot/efi
├─nvme0n1p2 259:2 0 2G 0 part
│ └─cryptoswap 252:1 0 2G 0 crypt [SWAP]
├─nvme0n1p3 259:3 0 2G 0 part
└─nvme0n1p4 259:4 0 949.4G 0 part
$ cat /etc/crypttab
cryptoswap /dev/nvme0n1p2 /dev/urandom swap,initramfs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2084089/+subscriptions
More information about the foundations-bugs
mailing list