From 0abe4f96a72499a2605a7007c1ee76251997ed97 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 15 Sep 2023 00:28:49 +0100 Subject: [PATCH] ssh ensure we create /run/dropbear this is required if we don't have persistent store (jffs2) --- modules/ssh/ssh.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ssh/ssh.nix b/modules/ssh/ssh.nix index ef5942e5..3ee05114 100644 --- 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}