summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/builder2.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 161e01cc..6da07c1f 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -370,9 +370,10 @@ class SystemBuilder(BuilderBase): # pragma: no cover
f.write('append root=/dev/sda1 rootflags=subvol=factory-run '
'init=/sbin/init quiet rw\n')
- def _create_subvolume_snapshot(self, path, source, target):
- logging.debug('Creating subvolume snapshot %s to %s' %
- (source, target))
+ def _create_subvolume_snapshot(self, path, source, target):
+ logging.debug('Creating subvolume snapshot %s to %s' %
+ (source, target))
+ with self.build_watch('create-runtime-snapshot'):
self.ex.runv(['btrfs', 'subvolume', 'snapshot', source, target],
cwd=path)