summaryrefslogtreecommitdiff
path: root/morphlib/exts
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-15 10:20:31 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-15 15:30:12 +0000
commite038b699494a7d378dd9f73267feef1c023568c8 (patch)
tree963573e8268998a7581dd93a350b7cb2d5cfbac0 /morphlib/exts
parentb380912b95d9be36ded21bf2b2edfef172decfa7 (diff)
downloadmorph-e038b699494a7d378dd9f73267feef1c023568c8.tar.gz
Unmount the remote mouting point instead of the root disk
Unmounting the root disk as the side effect of turn it to be read only
Diffstat (limited to 'morphlib/exts')
-rwxr-xr-xmorphlib/exts/ssh-rsync.write2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/exts/ssh-rsync.write b/morphlib/exts/ssh-rsync.write
index 83091c4b..77266d33 100755
--- a/morphlib/exts/ssh-rsync.write
+++ b/morphlib/exts/ssh-rsync.write
@@ -101,7 +101,7 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension):
raise
else:
self.status(msg='Removing temporary mounts')
- cliapp.ssh_runcmd(location, ['umount', root_disk])
+ cliapp.ssh_runcmd(location, ['umount', remote_mnt])
cliapp.ssh_runcmd(location, ['rmdir', remote_mnt])
def update_remote_extlinux(self, location, remote_mnt, version_label):