forked from DGNum/liminix
keep dropbear host keys in /persist if it exists
This commit is contained in:
parent
f249c12bec
commit
a48d51ffdc
2 changed files with 6 additions and 4 deletions
|
@ -32,7 +32,7 @@ in
|
|||
in runCommand "make-jffs2" {
|
||||
depsBuildBuild = [ mtdutils ];
|
||||
} ''
|
||||
mkdir -p $TMPDIR/empty/nix/store/
|
||||
mkdir -p $TMPDIR/empty/nix/store/ $TMPDIR/empty/secrets
|
||||
cp ${systemConfiguration}/bin/activate $TMPDIR/empty/activate
|
||||
ln -s ${pkgs.s6-init-bin}/bin/init $TMPDIR/empty/init
|
||||
grafts=$(sed < ${systemConfiguration}/etc/nix-store-paths 's/^\(.*\)$/--graft \1:\1/g')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue