diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-24 13:33:07 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-24 13:33:07 +0000 |
commit | 87aa2c5a7c1f2cb0ca74959d5a082ccc80f6502a (patch) | |
tree | 3353bda5b67e58349f4ab83a22a5d491b64536b9 /morphlib/builder2.py | |
parent | 01f0beb534de646728d865d8f3a86dd448add873 (diff) | |
download | morph-87aa2c5a7c1f2cb0ca74959d5a082ccc80f6502a.tar.gz |
builder2: fix system building
Accidental indentation caused this function to not be defined in the
correct scope.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r-- | morphlib/builder2.py | 7 |
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) |