Skip to content

Commit 75ec3ae

Browse files
committed
bringup: refreshing a base OS template failed
virtbuilder complained about a missing argument for "-u" when it tried to refresh a local copy of a guest template. Preserve the quiet behavior introduced by commit 47d19e2 ("bringup_guestfs.sh: few minor fixes for libvirt URI users"), but ensure that the "-u" option is always filled in when the control host already has a "kdevops" user ID. Fixes: 47d19e2 ("bringup_guestfs.sh: few minor fixes for libvirt URI users") Signed-off-by: Chuck Lever <[email protected]>
1 parent 19c407f commit 75ec3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bringup_guestfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ _EOT
200200
pre_install_customizations()
201201
{
202202
KDEVOPS_UID=""
203-
TEST_UID=`id -u kdevops 2>&1 > /dev/null`
203+
id -u kdevops 2>&1 > /dev/null
204204
if [ $? -eq 0 ]; then
205-
KDEVOPS_UID="-u ${TEST_UID}"
205+
KDEVOPS_UID="-u `id -u kdevops`"
206206
fi
207207
if echo $OS_VERSION | grep -qE "^(rhel|fedora|centos)"; then
208208
UPDATE_GRUB_CMD="/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg"

0 commit comments

Comments
 (0)