Skip to content

Commit

Permalink
Improve chroot cmd logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenz33 committed Apr 2, 2015
1 parent 526a10e commit 982dfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions conduct/buildsteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def _strapSecondStage(self):
qemuStatic = '/usr/bin/qemu-%s-static' % self.arch
chrootQemuStaticPlace = path.join(self.destdir, 'usr', 'bin')

self.log.debug('Copy qemu static to chroot ...')
shutil.copy(qemuStatic, chrootQemuStaticPlace)
chrootedSystemCall(self.destdir,
'debootstrap/debootstrap --second-stage',
Expand Down
1 change: 1 addition & 0 deletions conduct/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def chrootedSystemCall(chrootDir, cmd, sh=True, mountPseudoFs=True, log=None):

try:
# exec chrooted cmd
self.log.debug('Execute chrooted command ...')
cmd = 'chroot %s %s' % (chrootDir, cmd)
return systemCall(cmd, sh, log)
finally:
Expand Down

0 comments on commit 982dfef

Please sign in to comment.