#999737 initramfs-tools: root filesystem fails to mount until I "zpool import rpool"

#999737#5
Date:
2021-11-15 18:48:28 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
       * Upgrading to linux-kernel-5.10.0-9-amd64
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
       * During boot, it fails to mount the root filesystem and forces me to
login to single user mode.  "zpool import rpool" followed by CTRL-D allows me
to complete my boot process.  "zpool status" shows bpool but not rpool.
       * I used these instructions (slightly altered for Bullseye) for
installing Debian with ZFS root: https://openzfs.github.io/openzfs-
docs/Getting%20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.html
   * What was the outcome of this action?
       * Workstation boots properly after "zpool import rpool".
   * What outcome did you expect instead?
       * To my recollection, there were previous upgrades of the kernel since
I've installed Bullseye and I didn't have any problems booting to them.


ken@sobo$ uname -a
Linux sobo 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux


ken@sobo$ sudo dkms status
[sudo] password for ken:
zfs, 2.0.3, 5.10.0-8-amd64, x86_64: installed
zfs, 2.0.3, 5.10.0-9-amd64, x86_64: installed


## I think something may be missing here?
## Referencing step 5 listed at https://github.com/openzfs/zfs/issues/10355
## but, then again, my workstation seems to boot without these modules...
ken@sobo$ lsinitramfs /boot/initrd.img-`uname -r` | grep -E '(zfs|spl).ko'
ken@sobo$
## The modules exist
ken@sobo$ ls -l /usr/lib/modules/`uname -r`/updates/dkms
total 3305
-rw-r--r-- 1 root root  501216 Oct  9 09:56 icp.ko
-rw-r--r-- 1 root root  221920 Oct  9 09:56 spl.ko
-rw-r--r-- 1 root root   20616 Oct  9 09:56 zavl.ko
-rw-r--r-- 1 root root  173320 Oct  9 09:56 zcommon.ko
-rw-r--r-- 1 root root 5748128 Oct  9 09:56 zfs.ko
-rw-r--r-- 1 root root  353472 Oct  9 09:56 zlua.ko
-rw-r--r-- 1 root root  180344 Oct  9 09:56 znvpair.ko
-rw-r--r-- 1 root root  342496 Oct  9 09:56 zunicode.ko
-rw-r--r-- 1 root root  723024 Oct  9 09:56 zzstd.ko
## and I can modprobe -i them, but they still don't show up
ken@sobo$ sudo modprobe -i spl
ken@sobo$ sudo modprobe -i zfs
ken@sobo$ lsinitramfs /boot/initrd.img-`uname -r` | grep -E '(zfs|spl).ko'
ken@sobo$


I apologize if this should be submitted to the linux-image package
maintainer(s).  Please let me know if I need to resubmit to them.