]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dropbear/dropbearkey.service: Allow extra arguments for key generation
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 28 Mar 2025 06:47:41 +0000 (07:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Apr 2025 16:59:29 +0000 (17:59 +0100)
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 <mike.looijmans@topic.nl>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/dropbear/dropbear/dropbearkey.service

index 71a12a6110c225c86b1291349d5cc685a7bc26d4..501e47124f327e6074079c94d310f315f569ab91 100644 (file)
@@ -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