[pkg-cryptsetup-devel] Bug#820888: Bug#820888: cryptsetup: initramfs cryptroot zfs support

Guilhem Moulin guilhem at guilhem.org
Tue Sep 13 15:22:14 UTC 2016


Control: tag -1 moreinfo

Hi François,

On Wed, 13 Apr 2016 at 13:29:41 +0200, François Scala wrote:
> 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.

Unfortunately I'm not able to debug this easily because there is
currently no d-i package (udeb) for ZFS :-/

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

I'm confused: the ‘cmdline_root’ variable is left empty when the value
of the ‘root=’ kernel parameter doesn't start with a slash ‘/’.

    root=*)
        opt="${opt#root=}"
        case $opt in
        /*) # Absolute path given. Not lilo major/minor number.
            cmdline_root=$opt
            ;;
        *) # lilo major/minor number (See #398957). Ignore
        esac

and the ‘NEWROOT’ variable is set to "/dev/mapper/$cryptlvm" when
‘cmdline_root’ is unset or set to the empty string.

Could you try to to enable debugging for the cryptroot initramfs script,
as documented in

  https://wiki.debian.org/CryptsetupDebug#Debug_cryptroot_initramfs_script

and forward us the log file?  The problem might lie somewhere else.

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20160913/bde0d2bc/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list