]> code.ossystems Code Review - openembedded-core.git/commitdiff
dropbear/openssh: Lower priority of key generation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Sep 2020 05:52:57 +0000 (06:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Sep 2020 11:48:05 +0000 (12:48 +0100)
Where we have images with PAM+systemd, serial login can be extremely
slow. The load generated by key generation does slow down the rest
of the boot process.

Lower the priority level of these systemd services, since we'd
prefer to have the rest of the system boot more effectively.

This doesn't "solve" the slow systemd boot issues but does help.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service
meta/recipes-core/dropbear/dropbear/dropbearkey.service

index 603c33787f1ac5d4a6d9cf4f62d42b53e8530a17..fd81793d511bc4ae83f05dec5ebbf7c0added506 100644 (file)
@@ -6,3 +6,4 @@ RequiresMountsFor=/var /run
 ExecStart=@LIBEXECDIR@/sshd_check_keys
 Type=oneshot
 RemainAfterExit=yes
+Nice=10
index c49053d57c7f190c6b57086c912b818c1a30d02c..71a12a6110c225c86b1291349d5cc685a7bc26d4 100644 (file)
@@ -11,3 +11,4 @@ Type=oneshot
 ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR}
 ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key
 RemainAfterExit=yes
+Nice=10