nfs/module-setup.sh: combine egreps for /etc/passwd and /etc/group
parent
db9fbaf9b8
commit
41bfa5dad1
|
@ -62,12 +62,8 @@ install() {
|
|||
|
||||
# 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 '^nfsnobody:' /etc/passwd >> "$initdir/etc/passwd"
|
||||
egrep '^rpc:' /etc/passwd >> "$initdir/etc/passwd"
|
||||
egrep '^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
|
||||
#type -P nologin >/dev/null && dracut_install nologin
|
||||
egrep '^nobody:' /etc/group >> "$initdir/etc/group"
|
||||
egrep '^rpc:' /etc/group >> "$initdir/etc/group"
|
||||
egrep '^nfsnobody:|^rpc:|^rpcuser:' /etc/passwd >> "$initdir/etc/passwd"
|
||||
egrep '^nogroup:|^rpc:|^nobody:' /etc/group >> "$initdir/etc/group"
|
||||
|
||||
# rpc user needs to be able to write to this directory to save the warmstart
|
||||
# file
|
||||
|
|
Loading…
Reference in New Issue