I really don’t know what to suggest here. As you mentioned, this used to
work. If you are only using LUKS for swap, maybe you could just remove
it from crypttab and run the appropriate commands manually in rc.local
or a custom systemd unit.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1802481

Title:
  cryptsetup waits for zvol /dev/zvol/rpool/swap with no zpool imported
  during boot. Timing problem?

Status in zfs-linux package in Ubuntu:
  New

Bug description:
  Hi,
  first of all: I don't know if it is a bug in cryptsetup-initramfs or 
zfs-initramfs or another one.

  The problem is that since my upgrade from bionic to cosmic the
  cryptsetup tries too early to setup my cryptswap device which is on a
  zvol.

    cryptsetup: Waiting for encrypted source device /dev/zvol/rpool/swap...
         ALERT! encrypted source device /dev/zvol/rpool/swap does not exist, 
can't unlock cryptswap1.
    ...
    
  After timeout I find myself in a initramfs-shell (initramfs).
  When I do zpool list there is no zpool importet.
  After

    zpool import -N rpool
    ^D

  the cryptsetup succeeds.
  Greetings,

     Lars

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: cryptsetup-initramfs 2:2.0.4-2ubuntu2
  ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
  Uname: Linux 4.18.0-11-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Fri Nov  9 10:01:19 2018
  EcryptfsInUse: Yes
  PackageArchitecture: all
  SourcePackage: cryptsetup
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.default.apport: [modified]
  modified.conffile..etc.logrotate.d.apport: [modified]
  mtime.conffile..etc.default.apport: 2015-03-15T20:01:19.851334
  mtime.conffile..etc.logrotate.d.apport: 2018-05-18T08:58:12.902005

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1802481/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to