[pkg-cryptsetup-devel] Bug#820888: cryptsetup: initramfs cryptroot zfs support
François Scala
francois at scala.name
Wed Apr 13 11:29:41 UTC 2016
Package: cryptsetup
Version: 2:1.6.6-5
Severity: normal
Dear Maintainer,
While working on a Debian installation based on ZFS root with LUKS
encryption (see https://github.com/arcenik/debian-zfs-root) I've
encountered some problem with the initramfs cryptroot script.
The LUKS is properly opened and the contained LVM volume properly detected.
It then try to detect the filesystem type from the root kernel parameter
using blkid. But this fail because the root parameter value is not
recognised by blkid
root=ZFS=rpool/ROOT/debian-1
I think that ${cmdline_root} should be used for NEWROOT only if it begin
with '/dev' or at least '/' and use '/dev/mapper/${cryptlvm}' if not.
Regards.
François.
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 root=ZFS=rpool/ROOT/debian-1 ro
boot=zfs cryptops=source=/dev/sda2,target=cryptroot,lvm=vg_sys-lv_zroot
-- /etc/crypttab
# no crypttab
-- /etc/fstab
LABEL=BOOT /boot ext4 noatime 0 1
LABEL=SWAP none swap defaults 0 0
-- lsmod
Module Size Used by
fuse 83350 0
btrfs 863629 0
xor 21040 1 btrfs
raid6_pq 95238 1 btrfs
ufs 73443 0
qnx4 13036 0
hfsplus 101391 0
hfs 53845 0
minix 31387 0
ntfs 194605 0
vfat 17135 0
msdos 17046 0
fat 61986 2 vfat,msdos
jfs 172859 0
xfs 779930 0
libcrc32c 12426 1 xfs
crc32c_generic 12656 0
ext4 473801 1
crc16 12343 1 ext4
mbcache 17171 1 ext4
jbd2 82514 1 ext4
zfs 2614234 7
zunicode 328546 1 zfs
zcommon 39960 1 zfs
znvpair 58712 2 zfs,zcommon
spl 69541 3 zfs,zcommon,znvpair
zavl 13071 1 zfs
dm_crypt 22595 1
dm_mod 89405 8 dm_crypt
xts 12679 1
gf128mul 12970 1 xts
algif_skcipher 17349 0
af_alg 13034 1 algif_skcipher
nfsd 263032 2
auth_rpcgss 51211 1 nfsd
oid_registry 12419 1 auth_rpcgss
nfs_acl 12511 1 nfsd
nfs 188136 0
lockd 83389 2 nfs,nfsd
fscache 45542 1 nfs
sunrpc 237402 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
ppdev 16782 0
snd_intel8x0 34948 0
joydev 17063 0
snd_ac97_codec 118711 1 snd_intel8x0
pcspkr 12595 0
evdev 17445 3
snd_pcm 88662 2 snd_ac97_codec,snd_intel8x0
serio_raw 12849 0
snd_timer 26614 1 snd_pcm
snd 65244 4
snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
battery 13356 0
soundcore 13026 1 snd
parport_pc 26300 0
parport 35749 2 ppdev,parport_pc
processor 28221 0
video 18096 0
button 12944 0
ac 12715 0
ac97_bus 12510 1 snd_ac97_codec
thermal_sys 27642 2 video,processor
i2c_piix4 20864 0
i2c_core 46012 1 i2c_piix4
autofs4 35529 2
squashfs 43856 1
loop 26605 3
aufs 199535 390
nls_utf8 12456 4
isofs 38965 1
hid_generic 12393 0
usbhid 44460 0
hid 102264 2 hid_generic,usbhid
sd_mod 44356 3
crc_t10dif 12431 1 sd_mod
sg 29973 0
sr_mod 21903 1
cdrom 47424 1 sr_mod
crct10dif_generic 12581 1
crct10dif_common 12356 2 crct10dif_generic,crc_t10dif
ata_generic 12490 0
ohci_pci 12808 0
crc32c_intel 21809 2
ata_piix 33592 1
ahci 33334 2
libahci 27158 1 ahci
psmouse 99249 0
ohci_hcd 42982 1 ohci_pci
ehci_pci 12512 0
ehci_hcd 69837 1 ehci_pci
libata 177508 4 ahci,libahci,ata_generic,ata_piix
scsi_mod 191405 4 sg,libata,sd_mod,sr_mod
usbcore 195468 5 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid
usb_common 12440 1 usbcore
e1000 122545 0
-- System Information:
Debian Release: 8.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd
Versions of packages cryptsetup depends on:
ii cryptsetup-bin 2:1.6.6-5
ii debconf [debconf-2.0] 1.5.56
ii dmsetup 2:1.02.90-2.2
ii libc6 2.19-18+deb8u4
Versions of packages cryptsetup recommends:
ii busybox 1:1.22.0-9+deb8u1
ii console-setup 1.123
ii initramfs-tools [linux-initramfs-tool] 0.120+deb8u1
ii kbd 1.15.5-2
Versions of packages cryptsetup suggests:
pn dosfstools <none>
pn keyutils <none>
ii liblocale-gettext-perl 1.05-8+b1
-- debconf information:
cryptsetup/prerm_active_mappings: true
More information about the pkg-cryptsetup-devel
mailing list