From 9aaf0ded2f52537e2ee1b1941a401e7d57a2b895 Mon Sep 17 00:00:00 2001 From: Damien Rannou Date: Mon, 16 Oct 2023 16:26:38 +0200 Subject: [PATCH] 'sudo' group different between RH and Debian When creating the rescue user, check if we are on Debian or RH based in order to use the right sudo group Change-Id: I894f47a1eb0ecbccbecc0900980de7ad9da72425 --- .../bin/ironic-python-agent-create-rescue-user.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dib/ironic-python-agent-ramdisk/static/usr/local/bin/ironic-python-agent-create-rescue-user.sh b/dib/ironic-python-agent-ramdisk/static/usr/local/bin/ironic-python-agent-create-rescue-user.sh index 2f609f4..01f8586 100755 --- a/dib/ironic-python-agent-ramdisk/static/usr/local/bin/ironic-python-agent-create-rescue-user.sh +++ b/dib/ironic-python-agent-ramdisk/static/usr/local/bin/ironic-python-agent-create-rescue-user.sh @@ -5,5 +5,13 @@ set -o pipefail echo "Adding rescue user with root privileges..." crypted_pass=$( /etc/sudoers.d/rescue