* Make sure that nogroup exists.

svn path=/nixos/trunk/; revision=7469
This commit is contained in:
Eelco Dolstra 2006-12-23 00:26:35 +00:00
parent 444d6b7583
commit 07db057cbc

View File

@ -55,6 +55,12 @@ if ! test -e /etc/passwd; then
fi fi
# Some more required accounts/groups.
if ! getent group nogroup > /dev/null; then
groupadd -g 65534 nogroup
fi
# Set up Nix accounts. # Set up Nix accounts.
if test -z "@readOnlyRoot@"; then if test -z "@readOnlyRoot@"; then
@ -62,10 +68,6 @@ if test -z "@readOnlyRoot@"; then
groupadd -g 30000 nixbld groupadd -g 30000 nixbld
fi fi
if ! getent group nogroup > /dev/null; then
groupadd -g 65534 nogroup
fi
for i in $(seq 1 10); do for i in $(seq 1 10); do
account=nixbld$i account=nixbld$i
if ! getent passwd $account > /dev/null; then if ! getent passwd $account > /dev/null; then