summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-20 14:45:18 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-20 14:45:18 +0100
commit7ce497e90512645ea911cf58fa5de84394621f3a (patch)
tree07ae9fc9e688a67a30e551508cae115994cadbc0 /morphlib/builder2.py
parent5dcd254f4bb56fca6f1e66dabfe9797293556c29 (diff)
downloadmorph-7ce497e90512645ea911cf58fa5de84394621f3a.tar.gz
Add log message to indicate we got an error while system image building
This'll make it easier to see from a log file why we suddenly unmount something.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 490fcc6c..0f434524 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -260,7 +260,9 @@ class SystemBuilder(BuilderBase): # pragma: no cover
self._install_boot_files(factory_run_path, mount_point)
self._install_extlinux(mount_point)
self._unmount(mount_point)
- except BaseException:
+ except BaseException, e:
+ logging.error('Got error while system image building, '
+ 'unmounting and device unmapping')
self._unmount(mount_point)
self._undo_device_mapping(image_name)
raise