commit 0abe4f96a72499a2605a7007c1ee76251997ed97
parent f7b30939b58c682a3c24d18a342f7da825bc1ef1
Author: Daniel Barlow <dan@telent.net>
Date: Fri, 15 Sep 2023 00:28:49 +0100
ssh ensure we create /run/dropbear
this is required if we don't have persistent store (jffs2)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/ssh/ssh.nix b/modules/ssh/ssh.nix
@@ -35,6 +35,8 @@ longrun {
if test -d /persist; then
mkdir -p /persist/secrets/dropbear
ln -s /persist/secrets/dropbear /run
+ else
+ mkdir -p /run/dropbear
fi
. /etc/profile # sets PATH but do we need this? it's the same file as ashrc
exec env -i ENV=/etc/ashrc PATH=$PATH ${dropbear}/bin/dropbear ${concatStringsSep " " options}