Debian Bug report logs -
#790385
initramfs-tools: breaks building initramfs for zfs over (mirrored) LUKS - "can't find root device"
Reported by: crikey@vivaldi.net
Date: Sun, 28 Jun 2015 19:09:06 UTC
Severity: wishlist
Done: Aron Xu <aron@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#790385; Package initramfs-tools.
(Sun, 28 Jun 2015 19:09:10 GMT) (full text, mbox, link).
Acknowledgement sent
to crikey@vivaldi.net:
New Bug report received and forwarded. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>.
(Sun, 28 Jun 2015 19:09:10 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#790385; Package initramfs-tools.
(Sun, 28 Jun 2015 21:15:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>.
(Sun, 28 Jun 2015 21:15:04 GMT) (full text, mbox, link).
Message #10 received at 790385@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: severity -1 wishlist
On Sun, 2015-06-28 at 20:58 +0200, crikey@vivaldi.net wrote:
> 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.
[...]
So far as I know, booting from zfs has never been supported in
initramfs-tools. It would in any case require some support from one of
the zfs packages.
Ben.
--
Ben Hutchings
compatible: Gracefully accepts erroneous data from any source
[signature.asc (application/pgp-signature, inline)]
Severity set to 'wishlist' from 'important'
Request was from Ben Hutchings <ben@decadent.org.uk>
to 790385-submit@bugs.debian.org.
(Sun, 28 Jun 2015 21:15:04 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#790385; Package initramfs-tools.
(Tue, 30 Jun 2015 00:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to cg <crikey@vivaldi.net>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>.
(Tue, 30 Jun 2015 00:12:03 GMT) (full text, mbox, link).
Message #17 received at 790385@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
forwarded by request of ben hutchings
cg
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
On Mon, 2015-06-29 at 21:33 +0200, cg wrote:
> Hi Ben,
>
> Thanks for the good idea but... no luck.
>
> Under /dev/rpool or /dev/zvol/rpool there is only visible the swap
> dataset, which I created as a zvol. When I initially created the base
> rpool I deliberately didn't supply an -m (mountpoint) arg, so the
> zpool mounts natively at /rpool . Obviously I am trying to set up
> booting within a chroot. I tried using both /rpool/ROOT and /rpool in
> /etc/fstab but neither worked - update-initramfs couldn't determine
> /.
>
> 'mount' shows the zfs filesystems as rpool/ROOT, etc. while cat
> /proc/mounts shows them as /rpool/ROOT, etc.
>
> I've been tinkering for some weeks with it and don't know what
> further
> to do - except to keep on tinkering with it...
>
> Thanks again for the kind advice and the attention.
Please can you send this additional information to 790385@bugs.debian.o
rg.
Ben.
--
Ben Hutchings
Experience is what causes a person to make new mistakes instead of old ones.
[signature.asc (application/pgp-signature, inline)]
No longer marked as found in versions initramfs-tools/0.120.
Request was from Ben Hutchings <ben@decadent.org.uk>
to control@bugs.debian.org.
(Thu, 10 Dec 2015 03:21:08 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#790385; Package src:zfs-linux.
(Thu, 12 May 2016 21:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>.
(Thu, 12 May 2016 21:45:03 GMT) (full text, mbox, link).
Message #26 received at 790385@bugs.debian.org (full text, mbox, reply):
[Ben Hutchings]
> So far as I know, booting from zfs has never been supported in
> initramfs-tools. It would in any case require some support from one of
> the zfs packages.
As zfs-linux finally entered unstable yesterday, I guess it is
time to look at this issue again. Is this still a problem with
the packages in unstable? What exactly is needed to reproduce it?
Should booting from zfs work, or is there something out of reach
on Linux at the moment?
--
Happy hacking
Petter Reinholdtsen
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#790385; Package src:zfs-linux.
(Thu, 12 May 2016 22:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Turbo Fredriksson <turbo@bayour.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>.
(Thu, 12 May 2016 22:03:04 GMT) (full text, mbox, link).
Message #31 received at 790385@bugs.debian.org (full text, mbox, reply):
On May 12, 2016, at 10:40 PM, Petter Reinholdtsen wrote:
> As zfs-linux finally entered unstable yesterday, I guess it is
> time to look at this issue again.
I'm pretty sure it's fixed in one of my PRs that haven't been
accepted. I've seen this issue on the ZoL trackers, but I can't
remember if we got confirmation.
I include a patch for that in my ZoL packages.
https://github.com/zfsonlinux/pkg-zfs/tree/master/debian/wheezy/debian/patches
Now that ZFS have finally been accepted, we need to find
a way to merge my packages with the official Debian GNU/Linux
ones. And the Ubuntu ones.
My suggestion have been to include the debian directory into
upstream spl/zfs directly. With a little glue, we should be
able to provide ONE directory that works on everything.
My packages all work on Wheezy, Jessie, Sid as well as a
few Ubuntu versions.
Reply sent
to Aron Xu <aron@debian.org>:
You have taken responsibility.
(Fri, 14 Jul 2017 08:03:03 GMT) (full text, mbox, link).
Notification sent
to crikey@vivaldi.net:
Bug acknowledged by developer.
(Fri, 14 Jul 2017 08:03:03 GMT) (full text, mbox, link).
Message #36 received at 790385-done@bugs.debian.org (full text, mbox, reply):
This is fixed long ago, closing.
Cheers,
Aron
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 12 Aug 2017 07:29:16 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 20:47:58 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.