diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-24 17:01:26 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-24 17:01:26 +0100 |
commit | 9dbeb052771e958cbaa8897b3d806a82b8bfdc32 (patch) | |
tree | 4cc1c8b05229ff0137b558409f974b7e2f254b36 /morphlib | |
parent | 1424a3488eb9b6ecd57bb51159b5d63c33153c2a (diff) | |
download | morph-9dbeb052771e958cbaa8897b3d806a82b8bfdc32.tar.gz |
Add logging to /proc mounting and unmounting, and create /proc
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/builder2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 7c80849a..7cf403e4 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -143,14 +143,18 @@ class ChunkBuilder(BuilderBase): self.save_build_times() def mount_proc(self): # pragma: no cover + logging.debug('Mounting /proc in staging area') try: + self.staging_area.runcmd(['mkdir', '-p', '/proc']) self.staging_area.runcmd(['mount', '-t', 'proc', 'proc', '/proc']) except morphlib.execute.CommandFailure: + logging.error('Could not mount /proc in staging area') return False else: return True def umount_proc(self): # pragma: no cover + logging.error('Unmounting /proc in staging area') self.staging_area.runcmd(['umount', '/proc']) def get_sources(self, srcdir): # pragma: no cover |