Revert "Set stricter permissions on /nix/store"
This reverts commit 066758758e7c0768ff8da51d208cdae0f33b368c because
it breaks NixOS VM tests.
commita38f130126c5d81a961b26ecaafb845a186a6d91
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateTue 7 Apr 2015, 13:15 (12 years ago)
parent088523f
nixos/modules/installer/tools/nixos-install.sh+1−1
@@ -133,7 +133,7 @@ mkdir -m 0755 -p \
133133 $mountPoint/nix/var/nix/db \
134134 $mountPoint/nix/var/log/nix/drvs
135135
136−mkdir -m 1735 -p $mountPoint/nix/store
136+mkdir -m 1775 -p $mountPoint/nix/store
137137chown root:nixbld $mountPoint/nix/store
138138
139139
nixos/modules/system/boot/stage-2-init.sh+1−1
@@ -53,7 +53,7 @@ echo "booting system configuration $systemConfig" > /dev/kmsg
5353# Silence chown/chmod to fail gracefully on a readonly filesystem
5454# like squashfs.
5555chown -f 0:30000 /nix/store
56−chmod -f 1735 /nix/store
56+chmod -f 1775 /nix/store
5757if [ -n "@readOnlyStore@" ]; then
5858 if ! readonly-mountpoint /nix/store; then
5959 mount --bind /nix/store /nix/store