Skip to content

Commit

Permalink
Fixes chroot_unmount()
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Feb 3, 2015
1 parent 3cce36c commit 2cd68ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions reprounzip/reprounzip/unpackers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,7 @@ def chroot_unmount(target):
if not mounted:
return False

unpacked_info['mounted'] = False
write_dict(target / '.reprounzip', unpacked_info, 'chroot')

target = target.resolve()
for m in ('/dev', '/proc'):
d = join_root(target / 'root', Path(m))
if d.exists():
Expand All @@ -570,6 +568,10 @@ def chroot_unmount(target):
'sort -r | '
'xargs umount' % d,
shell=True)

unpacked_info['mounted'] = False
write_dict(target / '.reprounzip', unpacked_info, 'chroot')

return True


Expand Down

0 comments on commit 2cd68ae

Please sign in to comment.