From b1cbca414a148c12c01c39681983cc6403315282 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 7 Feb 2022 08:39:45 -0500 Subject: [PATCH] Fix compatibility with CentOS7 for imgutil build -s --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index b7e0b484..383a467e 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -342,7 +342,7 @@ def create_yumconf(sourcedir, addrepos): if os.path.exists(sourcedir + '/repodata'): yumconf.write('[genimage-topdir]\n') yumconf.write('name=Local install repository\n') - yumconf.write('baseurl={0}\n'.format(sourcedir)) + yumconf.write('baseurl=file://{0}\n'.format(sourcedir)) yumconf.write('enabled=1\ngpgcheck=0\n\n') else: c = configparser.ConfigParser()