Merge pull request #85996 from misuzu/nixos-install-low-memory
nixos/nixos-installer: use temporary directory on target filesystem
This commit is contained in:
commit
afbab5a3f3
@ -87,8 +87,11 @@ if [[ ! -e $NIXOS_CONFIG && -z $system ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# A place to drop temporary stuff.
|
# A place to drop temporary stuff.
|
||||||
|
tmpdir="$(mktemp -d -p $mountPoint)"
|
||||||
trap "rm -rf $tmpdir" EXIT
|
trap "rm -rf $tmpdir" EXIT
|
||||||
tmpdir="$(mktemp -d)"
|
|
||||||
|
# store temporary files on target filesystem by default
|
||||||
|
export TMPDIR=${TMPDIR:-$tmpdir}
|
||||||
|
|
||||||
sub="auto?trusted=1"
|
sub="auto?trusted=1"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user