Hi Richard,
thank you for your reply, but that didn't fix the problem.

It is more that at the moment when cryptsetup tries to configure the
cryptdevice on /dev/zvol/rpool/swap, the zpool is not imported. So
cryptsetup runs in timeout and drops me in a initramfs shell.

When I import the pool without mounting anything (zpool import -N rpool)
the device is there and I can exit the initramfs shell and cryptsetup
succeeds.

I had this bug in the cryptsetup bug list for a while and nothing happened. So 
I thought the ZFS people might be more interested ;-). In my opinion it is just 
the wrong order during boot.
The zpool has to be imported at the time when cryptsetup starts. Is there any 
reason it is other way round?

Greetings,

   Lars

-- 
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