diff options
Diffstat (limited to 'meta/recipes-core/dropbear/dropbear/dropbearkey.service')
-rw-r--r-- | meta/recipes-core/dropbear/dropbear/dropbearkey.service | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-core/dropbear/dropbear/dropbearkey.service b/meta/recipes-core/dropbear/dropbear/dropbearkey.service index ccc21d5cca..c49053d57c 100644 --- a/meta/recipes-core/dropbear/dropbear/dropbearkey.service +++ b/meta/recipes-core/dropbear/dropbear/dropbearkey.service | |||
@@ -1,8 +1,13 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=SSH Key Generation | 2 | Description=SSH Key Generation |
3 | ConditionPathExists=|!/etc/dropbear/dropbear_rsa_host_key | 3 | RequiresMountsFor=/var /var/lib |
4 | ConditionPathExists=!/etc/dropbear/dropbear_rsa_host_key | ||
5 | ConditionPathExists=!/var/lib/dropbear/dropbear_rsa_host_key | ||
4 | 6 | ||
5 | [Service] | 7 | [Service] |
8 | Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear" | ||
9 | EnvironmentFile=-/etc/default/dropbear | ||
6 | Type=oneshot | 10 | Type=oneshot |
7 | ExecStart=@SBINDIR@/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key | 11 | ExecStart=@BASE_BINDIR@/mkdir -p ${DROPBEAR_RSAKEY_DIR} |
12 | ExecStart=@SBINDIR@/dropbearkey -t rsa -f ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key | ||
8 | RemainAfterExit=yes | 13 | RemainAfterExit=yes |