2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 04:07:51 +00:00

Fix compatibility with CentOS7 for imgutil build -s

This commit is contained in:
Jarrod Johnson 2022-02-07 08:39:45 -05:00
parent 522d7e2b59
commit b1cbca414a

View File

@ -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()