From 47e1402108d4305d8d01ab85a8efc7363fc31e1b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 17 Jul 2009 15:03:51 +0200 Subject: [PATCH] nfs: do not install whole passwd, grep for rpc user --- modules.d/95nfs/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules.d/95nfs/install b/modules.d/95nfs/install index d0d0edbac..2e96e5daa 100755 --- a/modules.d/95nfs/install +++ b/modules.d/95nfs/install @@ -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 -- 2.47.3