diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-15 09:33:10 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-15 15:30:03 +0000 |
commit | b380912b95d9be36ded21bf2b2edfef172decfa7 (patch) | |
tree | fe181aa0aeae673140a595a5d0aea74b36a0e5bc /morphlib/exts | |
parent | d4e8c5d4efe2a12627fcde05cbe05686b6f87e37 (diff) | |
download | morph-b380912b95d9be36ded21bf2b2edfef172decfa7.tar.gz |
Don't dereference the default symbolic link when updating it
Or else this
ln -s -f update1 /mp/systems/default
will do this
'/pp/systems/default/update1' -> 'update1
When we want
'/pp/systems/default' -> 'update1
Diffstat (limited to 'morphlib/exts')
-rwxr-xr-x | morphlib/exts/ssh-rsync.write | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/exts/ssh-rsync.write b/morphlib/exts/ssh-rsync.write index fba550cd..83091c4b 100755 --- a/morphlib/exts/ssh-rsync.write +++ b/morphlib/exts/ssh-rsync.write @@ -84,8 +84,7 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension): # not have an updated extlinux config file self.update_remote_extlinux(location, remote_mnt, version_label) - cliapp.ssh_runcmd(location, ['ln', '-s', '-f', - version_label, + cliapp.ssh_runcmd(location, ['ln', '-sfn', version_label, default_path]) except Exception as e: try: |