mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Fix adding repositories to rhel-style diskless
This commit is contained in:
parent
558139d654
commit
57a8149844
@ -363,7 +363,7 @@ def create_yumconf(sourcedir, addrepos):
|
||||
yumconf.write('[addrepo-{0}]\n'.format(addrepoidx))
|
||||
yumconf.write('name=Add-on repository {0}\n'.format(addrepoidx))
|
||||
yumconf.write('baseurl={0}\n'.format(repo))
|
||||
yumconf.write('enabled=1\ngpgcheck\0\n\n')
|
||||
yumconf.write('enabled=1\ngpgcheck=0\n\n')
|
||||
addrepoidx += 1
|
||||
return repodir
|
||||
|
||||
@ -496,7 +496,7 @@ class ElHandler(OsHandler):
|
||||
yumconfig = create_yumconf(sourcepath, self.addrepos)
|
||||
self.yumargs.extend(
|
||||
['--setopt=reposdir={0}'.format(yumconfig), '--disablerepo=*',
|
||||
'--enablerepo=genimage-*'])
|
||||
'--enablerepo=genimage-*', '--enablerepo=addrepo-*'])
|
||||
self.sourcepath = sourcepath
|
||||
|
||||
def set_target(self, targpath):
|
||||
|
Loading…
Reference in New Issue
Block a user