mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
stage-2-init: Don't rely on groups being initialised
This commit is contained in:
parent
6c6134c2d2
commit
fdea3ac3d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user