nfs: do not install whole passwd, grep for rpc user
authorHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 13:03:51 +0000 (15:03 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 14:00:20 +0000 (16:00 +0200)
modules.d/95nfs/install

index d0d0edb..2e96e5d 100755 (executable)
@@ -26,7 +26,9 @@ 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
-echo "rpc:x:32:32:Rpcbind:/var/lib/rpcbind:/bin/false" >> "$initdir/etc/passwd"
+egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"
+egrep '^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
+#which nologin >/dev/null 2>&1 && dracut_install nologin
 
 # rpc user needs to be able to write to this directory to save the warmstart
 # file