Browse Source

nfs: suppress error message about missing passwd

master
Harald Hoyer 15 years ago
parent
commit
a39ea24f10
  1. 2
      modules.d/95nfs/install

2
modules.d/95nfs/install

@ -36,7 +36,7 @@ mkdir -p "$initdir/var/lib/nfs/statd/sm" @@ -36,7 +36,7 @@ mkdir -p "$initdir/var/lib/nfs/statd/sm"

# Rather than copy the passwd file in, just set a user for rpcbind
# We'll save the state and restart the daemon from the root anyway
egrep '^root:' "$initdir/etc/passwd" || echo 'root:x:0:0::/:/bin/sh' >> "$initdir/etc/passwd"
egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo 'root:x:0:0::/:/bin/sh' >> "$initdir/etc/passwd"
egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
egrep '^nfsnobody:' /etc/passwd >> "$initdir/etc/passwd"
egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"

Loading…
Cancel
Save