summaryrefslogtreecommitdiff
path: root/ssh-rsync.write
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-05 10:24:07 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-05 16:16:41 +0000
commitec477897b9d6afd3ab176ab512d12f36121618c1 (patch)
treef37c9338b6c09d420da15bf9abbf0b308c8f32ec /ssh-rsync.write
parentaa7005c9b4207ac32621433a95a0c9b44007f6b4 (diff)
downloaddefinitions-ec477897b9d6afd3ab176ab512d12f36121618c1.tar.gz
Use the default symlink when creating the orig subvolume.
This patch solves the issue caused by upgrading a system without a factory version. Currently we are only using the factory version to snapshot its orig subvolume to make faster the transfer of the new content (rsync won't have to send everything). The default symlink may not be present, but it can't be deleted easily using system-version-manager. This is a quick fix, but in the future we may want to not harcode the path from where we snapshot the orig subvolume. Or improve system-version-manager to make sure that the default symlink is always present.
Diffstat (limited to 'ssh-rsync.write')
-rwxr-xr-xssh-rsync.write4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-rsync.write b/ssh-rsync.write
index 0ce89c7f..2d7258ba 100755
--- a/ssh-rsync.write
+++ b/ssh-rsync.write
@@ -92,8 +92,8 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension):
def get_old_orig(self, location, remote_mnt):
'''Identify which subvolume to snapshot from'''
- # rawdisk upgrades use 'factory'
- return os.path.join(remote_mnt, 'systems', 'factory', 'orig')
+ # rawdisk upgrades use 'default'
+ return os.path.join(remote_mnt, 'systems', 'default', 'orig')
@contextlib.contextmanager
def _created_orig_subvolume(self, location, remote_mnt, version_root):