Package: dropbear-initramfs
Version: 2016.74-5+deb9u1

the dropbear initramfs-tools init-premount script does include the
config file of the post-initramfs dropbear.

This is likely not desired because when you run dropbear in initramfs
you will usually use a different config (like different port). Of
course there are different options to work around this, e.g.
/etc/initramfs-tools/initramfs.conf, but in my opinion
dropbear-initramfs should use its own config from
/etc/dropbear-initramfs/ instead of relying on the system one from
/etc/dropbear/.

# dpkg -S /usr/share/initramfs-tools/scripts/init-premount/dropbear
dropbear-initramfs: /usr/share/initramfs-tools/scripts/init-premount/dropbear

# dpkg -l dropbear-initramfs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name
Version                             Architecture
 Description
+++-============================================================-===================================-===================================-==============================================================================================================================
ii  dropbear-initramfs
2016.74-5+deb9u1                    all
 lightweight SSH2 server and client - initramfs integration

# cat /etc/debian_version; uname -a
9.6
Linux debian 4.9.0-8-marvell #1 Debian 4.9.130-2 (2018-10-27) armv5tel GNU/Linux



*** dropbear    2018-08-24 02:08:38.000000000 +0200
--- dropbear.fixed      2018-12-31 15:17:05.569984908 +0100
***************
*** 38,44 ****
      DROPBEAR_OPTIONS="$PKGOPTION_dropbear_OPTION"
  fi
  if [ -e /etc/dropbear/config ]; then
!     . /etc/dropbear/config
  fi
  . /scripts/functions

--- 38,44 ----
      DROPBEAR_OPTIONS="$PKGOPTION_dropbear_OPTION"
  fi
  if [ -e /etc/dropbear/config ]; then
!     . /etc/dropbear-initramfs/config
  fi
  . /scripts/functions

Reply via email to