From: Mike Looijmans Date: Fri, 28 Mar 2025 06:47:41 +0000 (+0100) Subject: dropbear/dropbearkey.service: Allow extra arguments for key generation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ae2c70fe83bc242b7a13655bc38431c81033c66;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git dropbear/dropbearkey.service: Allow extra arguments for key generation Just like the "init" version this script, pass $DROPBEAR_RSAKEY_ARGS to the 'dropbearkey' program when generating a host key. This allows to speed up SSH connections on read-only root systems by adding the line DROPBEAR_RSAKEY_ARGS="-s 1024" into /etc/default/dropbear. See also: c0efbcb47ab3 ("dropbear/init: Allow extra arguments for key generation") Signed-off-by: Mike Looijmans Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/dropbear/dropbear/dropbearkey.service b/meta/recipes-core/dropbear/dropbear/dropbearkey.service index 71a12a6110c..501e47124f3 100644 --- a/meta/recipes-core/dropbear/dropbear/dropbearkey.service +++ b/meta/recipes-core/dropbear/dropbear/dropbearkey.service @@ -9,6 +9,6 @@ Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear" EnvironmentFile=-/etc/default/dropbear Type=oneshot ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR} -ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key +ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key $DROPBEAR_RSAKEY_ARGS RemainAfterExit=yes Nice=10