summaryrefslogtreecommitdiff
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
commit89ad5f816fff7bd7897b2d4cb02ae5cc6b6799d2 (patch)
tree17800886e71ab7dbe9e3bb9266ad242c4f286749
parent2a799319bd19ce9d303aa63d30ab7c556b17b6bb (diff)
downloaddefinitions-89ad5f816fff7bd7897b2d4cb02ae5cc6b6799d2.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
-rwxr-xr-xssh-rsync.write2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-rsync.write b/ssh-rsync.write
index 83091c4b..77266d33 100755
--- a/ssh-rsync.write
+++ b/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):