2024-10-31 20:03:00 +00:00
|
|
|
From 4dfd0c8de071f074c813a87cc06335fa43e93a9d Mon Sep 17 00:00:00 2001
|
2024-08-19 10:48:17 +00:00
|
|
|
From: Pavel Valena <pvalena@redhat.com>
|
|
|
|
Date: Thu, 8 Aug 2024 00:55:03 +0200
|
2024-10-31 20:03:00 +00:00
|
|
|
Subject: [PATCH 26/32] fix(nfs): include also entries from
|
2024-08-19 10:48:17 +00:00
|
|
|
/usr/lib/{passwd,group}
|
|
|
|
|
|
|
|
as those paths are used by bootc instead of the /etc ones.
|
|
|
|
|
|
|
|
(cherry picked from commit 45cdf3c4f24f77f04b264a7747f115d1031b2e67)
|
|
|
|
|
|
|
|
Resolves: RHEL-53431
|
|
|
|
---
|
|
|
|
modules.d/95nfs/module-setup.sh | 11 +++++++++--
|
|
|
|
1 file changed, 9 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
|
2024-10-31 20:03:00 +00:00
|
|
|
index fbaeeb00..df2d0e05 100755
|
2024-08-19 10:48:17 +00:00
|
|
|
--- a/modules.d/95nfs/module-setup.sh
|
|
|
|
+++ b/modules.d/95nfs/module-setup.sh
|
|
|
|
@@ -130,8 +130,15 @@ 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
|
2024-10-31 20:03:00 +00:00
|
|
|
- grep -E '^(nfsnobody|_rpc|rpc|rpcuser):' "$dracutsysrootdir"/etc/passwd >> "$initdir/etc/passwd"
|
2024-08-19 10:48:17 +00:00
|
|
|
- grep -E '^nogroup:|^rpc:|^nobody:' "$dracutsysrootdir"/etc/group >> "$initdir/etc/group"
|
|
|
|
+ local _confdir
|
|
|
|
+ for _confdir in etc usr/lib; do
|
|
|
|
+
|
|
|
|
+ grep -sE '^(nfsnobody|_rpc|rpc|rpcuser):' "${dracutsysrootdir}/${_confdir}/passwd" \
|
|
|
|
+ >> "$initdir/${_confdir}/passwd"
|
|
|
|
+
|
|
|
|
+ grep -sE '^(nogroup|rpc|nobody):' "${dracutsysrootdir}/${_confdir}/group" \
|
|
|
|
+ >> "$initdir/${_confdir}/group"
|
|
|
|
+ done
|
|
|
|
|
|
|
|
dracut_need_initqueue
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.42.0
|
|
|
|
|