diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-05-23 15:20:52 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-05-23 15:20:52 +0000 |
commit | 7c848e43fae1416578372f7a9bdf6e5c38770894 (patch) | |
tree | 498f1a5809a09d685f4eda9ce5633efec20898f1 /morphlib/exts | |
parent | 9ca78c5d39878350cbf7ff81cc43ac5c9a9fdf36 (diff) | |
download | morph-7c848e43fae1416578372f7a9bdf6e5c38770894.tar.gz |
Use the name factory for the first system version.
Diffstat (limited to 'morphlib/exts')
-rwxr-xr-x | morphlib/exts/nfsboot.write | 2 | ||||
-rwxr-xr-x | morphlib/exts/rawdisk.write | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write index e2ce7db2..cf71301b 100755 --- a/morphlib/exts/nfsboot.write +++ b/morphlib/exts/nfsboot.write @@ -66,7 +66,7 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension): 'with hostname "baserock"') self.test_good_server(location) - version = 'version1' + version = 'factory' versioned_root = os.path.join(self._nfsboot_root, hostname, 'systems', version) self.copy_rootfs(temp_root, location, versioned_root, hostname) diff --git a/morphlib/exts/rawdisk.write b/morphlib/exts/rawdisk.write index 76438a5e..a43a9cce 100755 --- a/morphlib/exts/rawdisk.write +++ b/morphlib/exts/rawdisk.write @@ -59,7 +59,7 @@ class RawDiskWriteExtension(morphlib.writeexts.WriteExtension): version_root = os.path.join(mp, 'systems', version_label) os.mkdir(version_root) - old_orig = os.path.join(mp, 'systems', 'version1', 'orig') + old_orig = os.path.join(mp, 'systems', 'factory', 'orig') new_orig = os.path.join(version_root, 'orig') cliapp.runcmd( ['btrfs', 'subvolume', 'snapshot', old_orig, new_orig]) |