Bug#790385: initramfs-tools: breaks building initramfs for zfs over (mirrored) LUKS - "can't find root device"
Package: initramfs-tools
Version: 0.120
Severity: important
Dear Maintainer,
My first bug report - hope it's comprehensible / useful.
Trying to convert my workstation to ZFS; (kind of) following John
Goerzen's recipe. At the critical point, creating the initramfs, it
bombs out with the messages attached at the end. Have been at this for
a week now, tweaking what I can - but with no success. Please feel
free to ask for more or whatever info might be necessary. Thanks.
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 3.7M 2014-11-01 10:20 /boot/initrd.img-3.16.3-2+01.old-dkms
-rw-r--r-- 1 root root 3.7M 2014-12-14 09:16 /boot/initrd.img-3.16.5-1+01.old-dkms
-rw-r--r-- 1 root root 3.7M 2014-12-14 09:16 /boot/initrd.img-3.16.5-1+02.old-dkms
-rw-r--r-- 1 root root 3.8M 2015-02-11 12:24 /boot/initrd.img-3.16.7-2+01.old-dkms
-rw-r--r-- 1 root root 3.8M 2015-02-11 12:23 /boot/initrd.img-3.16.7-ckt2-1+01.old-dkms
-rw-r--r-- 1 root root 4.0M 2015-02-11 12:23 /boot/initrd.img-3.16.7-ckt2-1+02.old-dkms
-rw-r--r-- 1 root root 4.0M 2015-03-06 21:36 /boot/initrd.img-3.16.7-ckt2-1+03.old-dkms
-rw-r--r-- 1 root root 4.0M 2015-04-16 01:51 /boot/initrd.img-3.16.7-ckt4-3+01.old-dkms
-rw-r--r-- 1 root root 4.4M 2015-05-22 03:57 /boot/initrd.img-3.16.7-ckt7-1+01.old-dkms
-rw-r--r-- 1 root root 4.4M 2015-05-22 03:57 /boot/initrd.img-3.16.7-ckt9-2+01.old-dkms
-rw-r--r-- 1 root root 4.5M 2015-05-25 09:19 /boot/initrd.img-3.16.7-ckt9-3+02
-rw-r--r-- 1 root root 4.5M 2015-05-22 03:58 /boot/initrd.img-3.16.7-ckt9-3+02.old-dkms
-rw-r--r-- 1 root root 4.5M 2015-06-16 22:19 /boot/initrd.img-4.0.2-1+01
-rw-r--r-- 1 root root 4.5M 2015-06-28 12:28 /boot/initrd.img-4.0.2-1+01.old-dkms
-rw-r--r-- 1 root root 6.9M 2015-06-28 12:30 /boot/initrd.img-4.0.5-1+01
-rw-r--r-- 1 root root 6.2M 2015-06-28 12:30 /boot/initrd.img-4.0.5-1+01.old-dkms
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.0.5-1+01 root=UUID=cb83fb0f-3427-4e3c-93b8-6f117c9d8eb7 ro i915.enable_fbc=0
-- resume
RESUME=UUID=43d1f5d0-070a-423f-be44-e9e09993d740
-- /proc/filesystems
ext3
ext4
fuseblk
ext2
jfs
msdos
vfat
ntfs
-- lsmod
Module Size Used by
ntfs 183947 0
vfat 9823 0
msdos 7046 0
fat 50824 2 vfat,msdos
jfs 154577 0
ext2 47870 0
algif_skcipher 5963 0
af_alg 4660 1 algif_skcipher
cdc_acm 17698 0
usb_storage 47668 1
cpuid 2159 0
pci_stub 1341 1
vboxpci 13715 0
vboxnetadp 18035 0
vboxnetflt 16292 0
vboxdrv 329155 3 vboxnetadp,vboxnetflt,vboxpci
cpufreq_conservative 6360 0
cpufreq_stats 2598 0
cpufreq_userspace 1501 0
cpufreq_powersave 982 0
zfs 2034942 3
zunicode 319762 1 zfs
zavl 4446 1 zfs
zcommon 33528 1 zfs
znvpair 45448 2 zfs,zcommon
spl 59360 3 zfs,zcommon,znvpair
binfmt_misc 6582 1
xt_tcpudp 2399 54
nf_conntrack_ipv4 12680 2
nf_defrag_ipv4 1331 1 nf_conntrack_ipv4
xt_conntrack 3257 2
nf_conntrack 74118 2 xt_conntrack,nf_conntrack_ipv4
iptable_filter 1448 1
ip_tables 15747 1 iptable_filter
x_tables 15321 4
ip_tables,xt_tcpudp,xt_conntrack,iptable_filter
nfsd 231762 2
auth_rpcgss 41471 1 nfsd
oid_registry 2291 1 auth_rpcgss
nfs_acl 2639 1 nfsd
nfs 125923 0
lockd 58188 2 nfs,nfsd
grace 1570 2 nfsd,lockd
fscache 32519 1 nfs
sunrpc 175098 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
b43 344655 0
bcma 33128 1 b43
ssb 49552 1 b43
mmc_core 85514 1 ssb
mac80211 320275 1 b43
pcmcia 33580 1 ssb
pcmcia_core 11679 1 pcmcia
nct6775 37540 0
hwmon_vid 3092 1 nct6775
fuse 74133 0
hid_generic 1177 0
btusb 27633 0
bluetooth 302388 2 btusb
snd_hda_codec_realtek 56088 1
snd_hda_codec_generic 50802 1 snd_hda_codec_realtek
x86_pkg_temp_thermal 4647 0
intel_powerclamp 8674 0
coretemp 5836 0
kvm_intel 135510 0
kvm 289690 1 kvm_intel
wl 6289889 0
crct10dif_pclmul 4482 0
crc32_pclmul 2723 0
crc32c_intel 12833 0
snd_hda_intel 20003 0
i915 911448 2
snd_hda_controller 17226 1 snd_hda_intel
ghash_clmulni_intel 4066 0
snd_hda_codec 87492 4
snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel\
,snd_hda_controller
snd_hwdep 5658 1 snd_hda_codec
aesni_intel 159147 0
cfbfillrect 3738 1 i915
xhci_pci 3699 0
cfg80211 220722 3 wl,b43,mac80211
cfbimgblt 2223 1 i915
snd_pcm_oss 37293 0
aes_x86_64 7359 1 aesni_intel
snd_mixer_oss 13728 1 snd_pcm_oss
lrw 3333 1 aesni_intel
cfbcopyarea 3310 1 i915
snd_pcm 77323 4
snd_pcm_oss,snd_hda_codec,snd_hda_intel,snd_hda_controlle\
r
gf128mul 5402 1 lrw
snd_timer 18186 1 snd_pcm
glue_helper 4057 1 aesni_intel
snd 56258 9
snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd\
_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mixer_oss
ablk_helper 1740 1 aesni_intel
lpc_ich 14096 0
cryptd 7474 3
ghash_clmulni_intel,aesni_intel,ablk_helper
xhci_hcd 96851 1 xhci_pci
drm_kms_helper 78058 1 i915
soundcore 5231 2 snd,snd_hda_codec
rfkill 14707 2 cfg80211,bluetooth
ehci_pci 3919 0
psmouse 83026 0
i2c_i801 10046 0
mfd_core 3369 1 lpc_ich
pcspkr 1891 0
evdev 10714 16
processor 22640 0
usbhid 25438 0
hid 95868 2 hid_generic,usbhid
ehci_hcd 41998 1 ehci_pci
uhci_hcd 22667 0
usbcore 160545 9
btusb,uhci_hcd,usb_storage,ehci_hcd,ehci_pci,usbhid,cdc_a\
cm,xhci_hcd,xhci_pci
usb_common 1608 1 usbcore
ahci 24771 5
libahci 20359 1 ahci
libata 137204 2 ahci,libahci
-- /etc/initramfs-tools/modules
usbcore
uhci_hcd
ehci_hcd
usbhid
-- /etc/kernel-img.conf
# This is a sample /etc/kernel-img.conf file
# See kernel-img.conf(5) for details
# If you want the symbolic link (or image, if move_image is set) to be
# stored elsewhere than / set this variable to the dir where you
# want the symbolic link. Please note that this is not a Boolean
# variable. This may be of help to loadlin users, who may set both
# this and move_image. Defaults to /. This can be used in conjunction
# with all above options except link_in_boot, which would not make
# sense. (If both image_dest and link_in_boot are set, link_in_boot
# overrides).
image_dest = /
# This option manipulates the build link created by recent kernels. If
# the link is a dangling link, and if a the corresponding kernel
# headers appear to have been installed on the system, a new symlink
# shall be created to point to them.
#relink_build_link = YES
# If set, the preinst shall silently try to move /lib/modules/version
# out of the way if it is the same version as the image being
# installed. Use at your own risk.
#clobber_modules = NO
# If set, does not prompt to continue after a depmod problem in the
# postinstall script. This facilitates automated installs, though it
# may mask a problem with the kernel image. A diag- nostic is still
# issued. This is unset be default.
# ignore_depmod_err = NO
# These setting are for legacy postinst scripts only. newer postinst
# scripts from the kenrel-package do not use them
do_symlinks = yes
do_bootloader = no
do_initrd=yes
link_in_boot=no
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=y
COMPRESS=gzip
DEVICE=
NFSROOT=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- /sys/block
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
sda
sdb
sdc
sdd
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fsck
fuse
intel_microcode
keymap
klibc
kmod
lvm2
ntfs_3g
resume
thermal
udev
zdev
zfs
zz-busybox
*** /home/cg/system/zfs/err
root@kendra:/# update-initramfs -k 4.0.5-1+01 -u
update-initramfs: Generating /boot/initrd.img-4.0.5-1+01
mkinitramfs: failed to determine device for /
mkinitramfs: workaround is MODULES=most, check:
grep -r MODULES /etc/initramfs-tools/
Error please report bug on initramfs-tools
Include the output of 'mount' and 'cat /proc/mounts'
update-initramfs: failed for /boot/initrd.img-4.0.5-1+01 with 1.
root@kendra:/# mount
/rpool/ROOT on / type zfs (rw,noatime,xattr,noacl)
/rpool/home on /home type zfs (rw,noatime,xattr,noacl)
/rpool on /rpool type zfs (rw,relatime,xattr,noacl)
/rpool/var on /var type zfs (rw,noatime,xattr,noacl)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2011237,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
/dev/sdc5 on /boot type ext4 (rw,relatime,data=ordered)
root@kendra:/# cpm
rpool/ROOT / zfs rw,noatime,xattr,noacl 0 0
rpool/home /home zfs rw,noatime,xattr,noacl 0 0
rpool /rpool zfs rw,relatime,xattr,noacl 0 0
rpool/var /var zfs rw,noatime,xattr,noacl 0 0
udev /dev devtmpfs rw,relatime,size=10240k,nr_inodes=2011237,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
/dev/sdc5 /boot ext4 rw,relatime,data=ordered 0 0
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.5-1+01 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.22.0-15
ii cpio 2.11+dfsg-4.1
ii klibc-utils 2.0.4-2
ii kmod 20-1
ii module-init-tools 20-1
ii udev 220-7
Versions of packages initramfs-tools recommends:
ii busybox 1:1.22.0-15
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.1-4.1
-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed:
MODULES=most
BUSYBOX=y
KEYMAP=y
COMPRESS=gzip
DEVICE=
NFSROOT=auto
-- no debconf information
Reply to: