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
1 changed files with 3 additions and 2 deletions

View File

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