]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
make nfs4 work
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Feb 2010 16:20:49 +0000 (17:20 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Feb 2010 16:21:46 +0000 (17:21 +0100)
modules.d/95nfs/install

index 2b2d7cf3f7cc4cd69b5c9011947c0c2d9be3dd29..ea2d43262cfb4bc722ad64ea3eae9f5d57fcd504 100755 (executable)
@@ -36,6 +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 '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
 egrep '^nfsnobody:' /etc/passwd >> "$initdir/etc/passwd"
 egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"