[libvirt] [PATCH 01/10] ci: Fix /etc/sub{u,g}id parsing

Andrea Bolognani abologna at redhat.com
Fri Aug 16 09:49:45 UTC 2019


The $ needs to be escaped when calling shell code from a
Makefile.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 Makefile.ci | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.ci b/Makefile.ci
index 977e0445c6..14d595a00f 100644
--- a/Makefile.ci
+++ b/Makefile.ci
@@ -114,8 +114,8 @@ ifeq ($(CI_ENGINE),podman)
 	# need to be higher, but that only happens when your /etc/sub{u,g}id allow
 	# users to have more IDs.  Unless --keep-uid is supported, let's do this in a
 	# way that should work for everyone.
-	CI_MAX_UID = $(shell sed -n "s/^$USER:[^:]\+://p" /etc/subuid)
-	CI_MAX_GID = $(shell sed -n "s/^$USER:[^:]\+://p" /etc/subgid)
+	CI_MAX_UID = $(shell sed -n "s/^$$USER:[^:]\+://p" /etc/subuid)
+	CI_MAX_GID = $(shell sed -n "s/^$$USER:[^:]\+://p" /etc/subgid)
 	ifeq ($(CI_MAX_UID),)
 		CI_MAX_UID = 65536
 	endif
-- 
2.21.0




More information about the libvir-list mailing list