diff options
author | h0m1 <h0m1@protonmail.com> | 2019-11-19 20:41:56 +0100 |
---|---|---|
committer | h0m1 <h0m1@protonmail.com> | 2019-11-19 20:48:02 +0100 |
commit | 3802c4962e54dd6110092a2ba3feee1d2ebf5a9e (patch) | |
tree | 1c7ef2f10c8e21cf15cf17107f0952fffdd1282b /nixos/modules/system/boot/stage-1.nix | |
parent | 2d551354088ce9a7a25ac6851f45ce9e2ae5e0cf (diff) | |
download | nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar.gz nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar.bz2 nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar.lz nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar.xz nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.tar.zst nixpkgs-3802c4962e54dd6110092a2ba3feee1d2ebf5a9e.zip |
stage-1: create temporary secrets directory in /tmp and not in cwd
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 4c2d130d5a5..a3a76f2cd55 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -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 |