stage-2-init: Don't rely on groups being initialised

This commit is contained in:
Eelco Dolstra 2012-10-04 16:15:30 -04:00
parent 6c6134c2d2
commit fdea3ac3d2

View File

@ -42,8 +42,9 @@ fi
# Make /nix/store a read-only bind mount to enforce immutability of
# the Nix store.
chown root:nixbld /nix/store
# the Nix store. Note that we can't use "chown root:nixbld" here
# because users/groups might not exist yet.
chown 0:30000 /nix/store
chmod 1775 /nix/store
if [ -n "@readOnlyStore@" ]; then
if ! mountpoint -q /nix/store; then