stage-1: create temporary secrets directory in /tmp and not in cwd
This commit is contained in:
parent
2d55135408
commit
3802c4962e
|
@ -347,7 +347,7 @@ let
|
|||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
tmp=$(mktemp -d initrd-secrets.XXXXXXXXXX)
|
||||
tmp=$(mktemp -d ''${TMPDIR:-/tmp}/initrd-secrets.XXXXXXXXXX)
|
||||
|
||||
${lib.concatStringsSep "\n" (mapAttrsToList (dest: source:
|
||||
let source' = if source == null then dest else toString source; in
|
||||
|
|
Loading…
Reference in New Issue
Block a user