Merge pull request #10160 from dezgeg/pr-unset-build-hook-in-nixos-install
nixos-install: Don't use NIX_BUILD_HOOK from caller's environment
This commit is contained in:
commit
ab16b6a837
@ -188,6 +188,9 @@ mkdir -m 0755 -p $mountPoint/bin
|
|||||||
ln -sf @shell@ $mountPoint/bin/sh
|
ln -sf @shell@ $mountPoint/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
# Build hooks likely won't function correctly in the minimal chroot; just disable them.
|
||||||
|
unset NIX_BUILD_HOOK
|
||||||
|
|
||||||
# Make the build below copy paths from the CD if possible. Note that
|
# Make the build below copy paths from the CD if possible. Note that
|
||||||
# /tmp/root in the chroot is the root of the CD.
|
# /tmp/root in the chroot is the root of the CD.
|
||||||
export NIX_OTHER_STORES=/tmp/root/nix:$NIX_OTHER_STORES
|
export NIX_OTHER_STORES=/tmp/root/nix:$NIX_OTHER_STORES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user