summaryrefslogtreecommitdiff
path: root/morphlib/exts/nfsboot.write
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2013-05-13 10:32:45 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2013-05-14 15:45:54 +0100
commitd0afad8b5e6fbdf4c762b351eb331f310e395b1a (patch)
treebfb7e9de079fa522a7c2175c9b3361f6de2b92f2 /morphlib/exts/nfsboot.write
parentccbece24d26bdc91d1b5b36dc18f3d447f92b109 (diff)
downloadmorph-d0afad8b5e6fbdf4c762b351eb331f310e395b1a.tar.gz
Make rsync delete files that shouldn't exist
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-xmorphlib/exts/nfsboot.write2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write
index 34200793..e18ff798 100755
--- a/morphlib/exts/nfsboot.write
+++ b/morphlib/exts/nfsboot.write
@@ -95,7 +95,7 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension):
rootfs_dest = os.path.join('/srv/nfsboot/nfs', hostname)
rsync_dest = 'root@%s:%s' % (location, rootfs_dest)
cliapp.runcmd(
- ['rsync', '-a', rootfs_src, rsync_dest])
+ ['rsync', '-aXSPH', '--delete', rootfs_src, rsync_dest])
def configure_nfs(self, location, hostname):
rootfs_dest = os.path.join('/srv/nfsboot/nfs', hostname)