Hi Richard and Dider, thanks - I have set up encrypted swap on mdraid1 instead. It works but is subject to the same cycle issue - sometimes swap doesn't load, sometimes the boot zfs pool won't mount.
I went to apply the patch, but my system doesn't seem to have the two files that are referenced, etc/systemd/system-generators/zfs-mount-generator.in and /etc/systemd/system/zfs-mount.service.in and so the patch command failed. I have probably misunderstood something, sorry... I'm way out of my depth here. FWIW here are the contents of the directories for the missing files: root@eu1 ~ ls -l /etc/systemd total 94 -rw-r--r-- 1 root root 1042 Apr 22 19:04 journald.conf -rw-r--r-- 1 root root 1042 Apr 22 19:04 logind.conf drwxr-xr-x 2 root root 2 Apr 22 19:04 network -rw-r--r-- 1 root root 584 Apr 2 04:23 networkd.conf -rw-r--r-- 1 root root 529 Apr 2 04:23 pstore.conf -rw-r--r-- 1 root root 634 Apr 22 19:04 resolved.conf -rw-r--r-- 1 root root 790 Apr 2 04:23 sleep.conf drwxr-xr-x 15 root root 21 May 3 13:08 system -rw-r--r-- 1 root root 1759 Apr 22 19:04 system.conf -rw-r--r-- 1 root root 604 Apr 22 19:04 timesyncd.conf drwxr-xr-x 3 root root 3 May 2 18:24 user -rw-r--r-- 1 root root 1185 Apr 22 19:04 user.conf (system-generators is missing) root@eu1 ~ ls -l /etc/systemd/system/ total 90 lrwxrwxrwx 1 root root 44 Apr 27 17:56 dbus-org.freedesktop.resolve1.service -> /lib/systemd/system/systemd-resolved.service lrwxrwxrwx 1 root root 36 Apr 27 18:15 dbus-org.freedesktop.thermald.service -> /lib/systemd/system/thermald.service lrwxrwxrwx 1 root root 45 Apr 27 17:56 dbus-org.freedesktop.timesync1.service -> /lib/systemd/system/systemd-timesyncd.service drwxr-xr-x 2 root root 3 Apr 27 17:56 default.target.wants drwxr-xr-x 2 root root 3 Apr 27 18:05 emergency.target.wants drwxr-xr-x 2 root root 3 Apr 27 17:56 getty.target.wants drwxr-xr-x 2 root root 4 May 3 13:08 mdmonitor.service.wants drwxr-xr-x 2 root root 21 Apr 28 19:21 multi-user.target.wants drwxr-xr-x 2 root root 3 Apr 27 18:05 rescue.target.wants drwxr-xr-x 2 root root 11 May 3 13:08 sockets.target.wants lrwxrwxrwx 1 root root 31 Apr 27 18:02 sshd.service -> /lib/systemd/system/ssh.service drwxr-xr-x 2 root root 10 May 3 13:08 sysinit.target.wants lrwxrwxrwx 1 root root 35 Apr 27 17:56 syslog.service -> /lib/systemd/system/rsyslog.service drwxr-xr-x 2 root root 10 May 2 18:29 timers.target.wants lrwxrwxrwx 1 root root 35 Apr 27 18:05 zed.service -> /lib/systemd/system/zfs-zed.service drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-import.target.wants drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-mount.service.wants drwxr-xr-x 2 root root 8 Apr 27 18:05 zfs.target.wants drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-volumes.target.wants (zfs-mount.service.in is missing) The system was installed with debootstrap: dpkg --install debootstrap_1.0.118ubuntu1_all.deb debootstrap --arch=amd64 focal /mnt http://archive.ubuntu.com/ubuntu/ I did not install any zfs packages separately - the system only has what debootstrap gave it: root@eu1 ~ dpkg -l | grep zfs ii libzfs2linux 0.8.3-1ubuntu12 amd64 OpenZFS filesystem library for Linux ii zfs-initramfs 0.8.3-1ubuntu12 amd64 OpenZFS root filesystem capabilities for Linux - initramfs ii zfs-zed 0.8.3-1ubuntu12 amd64 OpenZFS Event Daemon ii zfsutils-linux 0.8.3-1ubuntu12 amd64 command-line tools to manage OpenZFS filesystems Many thanks for looking at this so quickly! :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875577 Title: Encrypted swap won't load on 20.04 with zfs root To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1875577/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
