nixos make-disk-image: fix permissions of /build
This was broken in 460c0d6 (PR #90431); now the nixos-unstable channel
should get unblocked.
vcunat modified this commit to use env-var instead of hardcoding /build
commit8d05772134f17180fb2711d0660702dae2a67313
authorlassulus <lassulus@lassul.us>
dateThu 9 Jul 2020, 20:38 (6 years ago)
parentcfd3aac
nixos/lib/make-disk-image.nix+1
@@ -181,6 +181,7 @@ let format' = format; in let
181181 export NIX_STATE_DIR=$TMPDIR/state
182182 nix-store --load-db < ${closureInfo}/registration
183183
184+ chmod 755 "$TMPDIR"
184185 echo "running nixos-install..."
185186 nixos-install --root $root --no-bootloader --no-root-passwd \
186187 --system ${config.system.build.toplevel} --channel ${channelSources} --substituters ""