mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Fix imgutil copy of ubuntu sources
This commit is contained in:
parent
34b03da494
commit
1ade704daa
@ -655,7 +655,8 @@ class DebHandler(OsHandler):
|
||||
|
||||
def prep_root(self, args):
|
||||
shutil.copy('/etc/apt/sources.list', os.path.join(self.targpath, 'etc/apt/sources.list'))
|
||||
shutil.copytree('/etc/apt/sources.list.d', os.path.join(self.targpath, 'etc/apt/sources.list.d'))
|
||||
for listfile in glob.glob('/etc/apt/sources.list.d/*'):
|
||||
shutil.copy(listfile, os.path.join(self.targpath, listfile[1:]))
|
||||
args.cmd = ['apt-get', 'update']
|
||||
run_constrainedx(fancy_chroot, (args, self.targpath))
|
||||
args.cmd = ['apt-get', '-y', 'install'] + self.includepkgs
|
||||
|
Loading…
Reference in New Issue
Block a user