Merge pull request #85996 from misuzu/nixos-install-low-memory

nixos/nixos-installer: use temporary directory on target filesystem
This commit is contained in:
Alexey Shmalko 2020-05-08 18:40:24 +03:00 committed by GitHub
commit afbab5a3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,8 +87,11 @@ if [[ ! -e $NIXOS_CONFIG && -z $system ]]; then
fi
# A place to drop temporary stuff.
tmpdir="$(mktemp -d -p $mountPoint)"
trap "rm -rf $tmpdir" EXIT
tmpdir="$(mktemp -d)"
# store temporary files on target filesystem by default
export TMPDIR=${TMPDIR:-$tmpdir}
sub="auto?trusted=1"