Hi, On Sat, 26 Mar 2016 at 16:06:29 +0000, Filippo Giunchedi wrote: > When ran with set -x I noticed > /usr/share/initramfs-tools/scripts/init-premount/dropbear sourcing > /conf/initramfs.conf. > This undoes the /proc/cmdline parsing done by /usr/share/initramfs-tools/init > earlier though and sets IP= from the config. It is easy enough to work around > in the > config with sth like [ -z "$IP" ] || IP="..." but not obvious at first.
Ah yeah, we're sourcing that file to import the DROPBEAR_OPTIONS (since
2015.70-1) or PKGOPTION_dropbear_OPTION (since 2014.64-1) environment
variables. The initramfs-tools maintainers have now (cf #807527)
written on best practicing for configuring hooks:
“If a hook script requires configuration beyond the exported
variables listed below, it should read a private configuration file
that is separate from the /etc/initramfs-tools directory. It must
not read initramfs-tools configuration files directly.”
— initramfs-tools(8)
So I guess we'll use an DROPBEAR_OPTIONS variable in
/etc/dropbear/initramfs-tools.conf or something. But it's not yet clear
to me how to do such migration in a way that doesn't break existing
installations.
Cheers,
--
Guilhem.
signature.asc
Description: PGP signature

