stage-1: create temporary secrets directory in /tmp and not in cwd

This commit is contained in:
h0m1
2020-12-30 07:50:34 +01:00
committed by Jörg Thalheim
parent c56fbe4e09
commit 330218e69a
+1 -1
View File
@@ -366,7 +366,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