bringup: Give the kdevops user on the test nodes a specific UID
RFC PATCH 1/1 bringup: Give the kdevops user on the test nodes a specific UID
From: Chuck Lever <[email protected]>
I was getting unexpected "Permission denied" errors when the target nodes tried to install a Linux kernel built on the host.
9p works only when the kdevops user has the same UID on the control and target nodes.
Signed-off-by Chuck Lever <[email protected]>
--- scripts/bringup_guestfs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Not sure this is the right solution, I'm no 9p expert. but it seems to work.
scripts/bringup_guestfs.sh +6 -1
@@ -58,9 +58,14 @@ _EOT fi # basic pre-install customization + KDEVOPS_UID="" + TEST_UID=`id -u kdevops` + if [ $? -eq 0 ]; then + KDEVOPS_UID="-u ${TEST_UID}" + fi cat <<_EOT >>$cmdfile install sudo,qemu-guest-agent,python3,bash -run-command useradd -m kdevops -s /bin/bash +run-command useradd ${KDEVOPS_UID} -s /bin/bash -m kdevops append-line /etc/sudoers.d/kdevops:kdevops ALL=(ALL) NOPASSWD: ALL _EOT
Signature · 1 line
2.45.0