From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D4094C7D for ; Fri, 10 May 2024 14:08:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350119; cv=none; b=muOk9P1OhWeZ9ObLQ3crazgzC3YRf0A9lYyR3TGxoEF/I64avn9bpszMqCq/n7AEQqAvAjlkJZDRbuGHSiCrnuyWQGX+NLEtNbmu905lF5ZFu6Jyx9TSCC5rOPJJuEwVdWD+yiyK7KhrsAK/50l4W430zJ3lrLl9JVTiiHhQd1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350119; c=relaxed/simple; bh=/sa70xM3vzA/LUm+vxA/6uPCqTO1jvPVMZdVKuTYwuM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dvwCkCPS4N4ynR3zGJ2sQXVPee6YY/0pqKjPkW1FYzU/hbbXjyKsDf/I3czZG09Qi3ql4Cb78vg33LMjWa9Ml7r0y+U4TAP2d0hpHMPY1CO2y3JDxLNFD7U+Gzqq4+vyFuezyzhjwdi6oETPBou8ZDJ3zb6iKlpZd/87vsYR6i0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gpqYCbFW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gpqYCbFW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA307C113CC; Fri, 10 May 2024 14:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715350119; bh=/sa70xM3vzA/LUm+vxA/6uPCqTO1jvPVMZdVKuTYwuM=; h=From:To:Cc:Subject:Date:From; b=gpqYCbFWFNTOvwhwaaoLs0hP67JusVzhAp4zDb7jPY8bvrjOKGUDE9Y7ihZORaN8o tOKVSYzLQoP28sUEutWXPjc8h17W4CYrkmHs550KjehE3VKKLFJdXlfTtfEhA6uFCV mBRo+KZB27DjYCfsVQrgjC1IRhD05N7EvC/O7Zo0Jx+hatNsWYpqlOpBkmeq4Elyeg xRim4/0zWfaH1gkI3aEHhvV+Exs55B0mY4khl73hbqgmyMvhTIF/DY2f+ys8s2D/TQ riFVtvfUHmKWjzQeIomHrvg7U3eDLoaS03QuSIuQwOX3LeNPSddsaGJTbF2bFhfntP B0ucvb/zPHYYA== From: cel@kernel.org To: Cc: Chuck Lever Subject: [RFC PATCH] bringup: Give the kdevops user on the test nodes a specific UID Date: Fri, 10 May 2024 10:08:35 -0400 Message-ID: <20240510140835.399244-1-cel@kernel.org> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever 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 --- 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. diff --git a/scripts/bringup_guestfs.sh b/scripts/bringup_guestfs.sh index dbace8d5d502..8e8574d1dd5e 100755 --- a/scripts/bringup_guestfs.sh +++ b/scripts/bringup_guestfs.sh @@ -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 -- 2.45.0