[pkg-cryptsetup-devel] Bug#873840: Please support a command-line option to disable initramfs hook

Josh Triplett josh at joshtriplett.org
Thu Aug 31 14:52:04 UTC 2017


Package: cryptsetup
Version: 2:1.7.3-4
Severity: normal

I'm trying to re-use the system initramfs in a virtual machine. This
mostly works, except that cryptsetup's initramfs hooks run at the end of
the initramfs and try to wait for the device they expect to have
provided, as configured in /conf/conf.d/cryptroot .

Could you please provide a command-line parameter to disable the
cryptsetup hook entirely for a given boot?

(Even better if cryptsetup could automatically infer this somehow from
the use of other parameters to set up an alternate root, such as root=r
rootfstype=9p .)

I did manage to find a workaround, namely "cryptopts=." , which produces
this error:
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... /scripts/local-top/cryptroot: export: line 1: CRYPTTAB_OPTION_.: bad variable name

-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin  2:1.7.3-4
ii  debconf         1.5.63
ii  dmsetup         2:1.02.142-1
ii  libc6           2.25-0experimental3

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-19+b3
pn  console-setup                           <none>
ii  initramfs-tools [linux-initramfs-tool]  0.130
pn  kbd                                     <none>

Versions of packages cryptsetup suggests:
ii  dosfstools              4.1-1
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.07-3+b3

-- debconf information excluded



More information about the pkg-cryptsetup-devel mailing list