summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmorphlib/exts/distbuild-trove-nfsboot.write12
1 files changed, 7 insertions, 5 deletions
diff --git a/morphlib/exts/distbuild-trove-nfsboot.write b/morphlib/exts/distbuild-trove-nfsboot.write
index df340421..6a05cf3d 100755
--- a/morphlib/exts/distbuild-trove-nfsboot.write
+++ b/morphlib/exts/distbuild-trove-nfsboot.write
@@ -122,8 +122,9 @@ class DistbuildTroveNFSBootWriteExtension(morphlib.writeexts.WriteExtension):
# The deployed rootfs may have been created by OSTree, so definitely
# don't pass --hard-links to `rsync`.
cliapp.runcmd(
- ['rsync', '--archive', '--info=progress2', '--protect-args',
- '--partial', '--sparse', '--xattrs', local_system_path + '/',
+ ['rsync', '--archive', '--delete', '--info=progress2',
+ '--protect-args', '--partial', '--sparse', '--xattrs',
+ local_system_path + '/',
'%s:%s' % (nfs_netloc, remote_system_path)], stdout=sys.stdout)
def duplicate_remote_system(self, nfs_netloc, source_system_path,
@@ -137,8 +138,8 @@ class DistbuildTroveNFSBootWriteExtension(morphlib.writeexts.WriteExtension):
# versions of Baserock have RSync 3.0.9. So the user doesn't get any
# progress info on stdout for the 'duplicate' stage.
cliapp.ssh_runcmd(nfs_netloc,
- ['rsync', '--archive', '--protect-args', '--partial', '--sparse',
- '--xattrs', source_system_path + '/',
+ ['rsync', '--archive', '--delete', '--protect-args', '--partial',
+ '--sparse', '--xattrs', source_system_path + '/',
target_system_path], stdout=sys.stdout)
def find_kernel(self, local_system_path):
@@ -163,7 +164,8 @@ class DistbuildTroveNFSBootWriteExtension(morphlib.writeexts.WriteExtension):
remote_system_path = self.system_path(system_name, version_label)
kernel_dest = os.path.join(remote_system_path, kernel_relpath)
- self.status(msg='Creating links to kernel in tftp directory')
+ self.status(msg='Creating links to %(name)s kernel in tftp directory',
+ name=system_name)
tftp_dir = os.path.join(self.nfsboot_root , 'tftp')
versioned_kernel_name = "%s-%s" % (system_name, version_label)