[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#926875: initramfs-tools backward compatibility removal



Package: initramfs-tools
Version: 0.130

When ifdown is invoked, it still checks for IFDOWN beeing supplied within /conf/initramfs.conf. Due to the nature of evolution, this has been moved to /etc/dropbear-initramfs/config within the release of stretch.

#######

if grep -q ^DROPBEAR_IFDOWN= /conf/initramfs.conf; then
    # XXX backward compatibility; remove once Stretch is the current stable
    . /conf/initramfs.conf
    IFDOWN="$DROPBEAR_IFDOWN"
fi
if [ -e /etc/dropbear/config ]; then
    . /etc/dropbear/config
fi

#######

I suggest to move the checks to the accordingly right file which is now /etc/dropbear-initramfs/config. Further a backward-compability check for upgraded systems should be in place or a warning (like when setting up cryptotools) to move already set variables like "IFDOWN=" to the appropriate new configuration-path (see above).


----

Florian Strankowski
uniquoo UG i.G.
Adolph-Schönfelder-Straße 68
22083 Hamburg, Germany


Reply to: