diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-18 06:52:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-06 14:15:21 +0100 |
commit | 74e4da095e8366819ef867e4df09af7bb0800a41 (patch) | |
tree | 92f8f2d704a750883fb08d482a68d311068c4097 | |
parent | 421f361d0d15410cd9f27440d4ee48e9e0eb2bda (diff) | |
download | poky-74e4da095e8366819ef867e4df09af7bb0800a41.tar.gz |
dropbear/openssh: Lower priority of key generation
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.
(From OE-Core rev: c5394e65972ac21b1c7f68db100754939ecaef8c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 087700665284c08ba846e52b6b86276629f5f1cd)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | 1 | ||||
-rw-r--r-- | meta/recipes-core/dropbear/dropbear/dropbearkey.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service index 603c33787f..fd81793d51 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service +++ b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | |||
@@ -6,3 +6,4 @@ RequiresMountsFor=/var /run | |||
6 | ExecStart=@LIBEXECDIR@/sshd_check_keys | 6 | ExecStart=@LIBEXECDIR@/sshd_check_keys |
7 | Type=oneshot | 7 | Type=oneshot |
8 | RemainAfterExit=yes | 8 | RemainAfterExit=yes |
9 | Nice=10 | ||
diff --git a/meta/recipes-core/dropbear/dropbear/dropbearkey.service b/meta/recipes-core/dropbear/dropbear/dropbearkey.service index c49053d57c..71a12a6110 100644 --- a/meta/recipes-core/dropbear/dropbear/dropbearkey.service +++ b/meta/recipes-core/dropbear/dropbear/dropbearkey.service | |||
@@ -11,3 +11,4 @@ Type=oneshot | |||
11 | ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR} | 11 | ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR} |
12 | ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key | 12 | ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key |
13 | RemainAfterExit=yes | 13 | RemainAfterExit=yes |
14 | Nice=10 | ||