Public bug reported: I had fresh install of Ubuntu 24.04 with ZFS and a 8GB swap partition automatically made by the Ubuntu installer, as /dev/nvme0n1p3.
I upgraded to 24.10 and the swap is not available after reboot. It seems swapon cannot find the encrypted partition. What went wrong during the upgrade? My /etc/fstab is unmodified since the fresh install: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-dm_crypt-0 none swap sw 0 0 # Use `zfs list` for current zfs mount info # bpool none defaults 0 0 # Use `zfs list` for current zfs mount info # rpool none defaults 0 0 # Use `zfs list` for current zfs mount info # rpool / defaults 0 0 # Use `zfs list` for current zfs mount info # rpool none defaults 0 0 # Use `zfs list` for current zfs mount info # rpool /root defaults 0 0 # Use `zfs list` for current zfs mount info # rpool /home defaults 0 0 # Use `zfs list` for current zfs mount info # bpool /boot defaults 0 0 # /boot/efi was on /dev/nvme0n1p1 during curtin installation /dev/disk/by-uuid/6DA7-371B /boot/efi vfat defaults 0 1 And my /etc/crypttab: dm_crypt-0 PARTUUID=d5018485-33be-40b8-80a1-9adb3c96ff16 /dev/urandom swap,initramfs In /etc/crypttab I tried to replace the ID PARTUUID=d5018485-33be-40b8-80a1-9adb3c96ff16 by /dev/nvme0n1p3 but it didn't solve the problem after rebooting. I also tried to add these options: swap,initramfs,plain,cipher=aes-xts-plain64,size=256 blkid: /dev/nvme0n1p1: UUID="6DA7-371B" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="604b52dd-b0fc-43d8-8661-3dcb64869220" /dev/nvme0n1p4: LABEL="rpool" UUID="15673004915406136913" UUID_SUB="7631777870671497537" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="2157f054-6832-42fb-8032-8d2fb89b235b" /dev/nvme0n1p2: LABEL="bpool" UUID="8036775395222734905" UUID_SUB="16758030276404416519" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="ec3c6766-9115-4fa6-b9d4-793d092a7bb4" /dev/mapper/keystore-rpool: LABEL="keystore-rpool" UUID="bda5d08f-4300-4ecf-9dd1-9c6958d53738" BLOCK_SIZE="4096" TYPE="ext4" /dev/nvme0n1p3: PARTUUID="d5018485-33be-40b8-80a1-9adb3c96ff16" $ sudo swapon -a swapon: cannot open /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-dm_crypt-0: No such file or directory $ sudo update-initramfs -u -k all update-initramfs: Generating /boot/initrd.img-6.11.0-9-generic cryptsetup: ERROR: dm_crypt-0: Source mismatch device-mapper: table ioctl on dm_crypt-0 failed: No such device or address Command failed. cryptsetup: WARNING: Couldn't determine cipher modules to load for dm_crypt-0 mkinitramfs: copy_file: config '/etc/zfs/vdev_id.conf' not found mkinitramfs: copy_file: config '/etc/zfs/initramfs-tools-load-key' not found mkinitramfs: copy_file: config '/etc/zfs/initramfs-tools-load-key.d/*' not found update-initramfs: Generating /boot/initrd.img-6.8.0-48-generic cryptsetup: ERROR: dm_crypt-0: Source mismatch device-mapper: table ioctl on dm_crypt-0 failed: No such device or address Command failed. cryptsetup: WARNING: Couldn't determine cipher modules to load for dm_crypt-0 mkinitramfs: copy_file: config '/etc/zfs/vdev_id.conf' not found mkinitramfs: copy_file: config '/etc/zfs/initramfs-tools-load-key' not found mkinitramfs: copy_file: config '/etc/zfs/initramfs-tools-load-key.d/*' not found Also, I don't know if it is related but during boot, when prompted for the (ZFS encrypted) disk password, I have the following warning: cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm- crypt mapping dm_crypt-0. Please read /usr/share/doc/cryptsetup- initramfs/README.initramfs.gz and add the correct 'size' option to your crypttab(5). ** Affects: ubuntu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2087797 Title: Swap not available after upgrade to 24.10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/2087797/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs