Blame 0010-nfs-module-setup.sh-combine-egreps-for-etc-passwd-an.patch
|
Harald Hoyer |
ab11ed |
From 41bfa5dad1d0a1ccdef70bd74068e5d4d67d5e27 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
ab11ed |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
ab11ed |
Date: Fri, 5 Apr 2013 16:34:36 +0200
|
|
Harald Hoyer |
ab11ed |
Subject: [PATCH] nfs/module-setup.sh: combine egreps for /etc/passwd and
|
|
Harald Hoyer |
ab11ed |
/etc/group
|
|
Harald Hoyer |
ab11ed |
|
|
Harald Hoyer |
ab11ed |
---
|
|
Harald Hoyer |
ab11ed |
modules.d/95nfs/module-setup.sh | 8 ++------
|
|
Harald Hoyer |
ab11ed |
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
Harald Hoyer |
ab11ed |
|
|
Harald Hoyer |
ab11ed |
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
ab11ed |
index 7c3a64d..6d4d412 100755
|
|
Harald Hoyer |
ab11ed |
--- a/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
ab11ed |
+++ b/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
ab11ed |
@@ -62,12 +62,8 @@ install() {
|
|
Harald Hoyer |
ab11ed |
|
|
Harald Hoyer |
ab11ed |
# Rather than copy the passwd file in, just set a user for rpcbind
|
|
Harald Hoyer |
ab11ed |
# We'll save the state and restart the daemon from the root anyway
|
|
Harald Hoyer |
ab11ed |
- egrep '^nfsnobody:' /etc/passwd >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
ab11ed |
- egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
ab11ed |
- egrep '^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
ab11ed |
- #type -P nologin >/dev/null && dracut_install nologin
|
|
Harald Hoyer |
ab11ed |
- egrep '^nobody:' /etc/group >> "$initdir/etc/group"
|
|
Harald Hoyer |
ab11ed |
- egrep '^rpc:' /etc/group >> "$initdir/etc/group"
|
|
Harald Hoyer |
ab11ed |
+ egrep '^nfsnobody:|^rpc:|^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
|
|
Harald Hoyer |
ab11ed |
+ egrep '^nogroup:|^rpc:|^nobody:' /etc/group >> "$initdir/etc/group"
|
|
Harald Hoyer |
ab11ed |
|
|
Harald Hoyer |
ab11ed |
# rpc user needs to be able to write to this directory to save the warmstart
|
|
Harald Hoyer |
ab11ed |
# file
|