diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py index fde1e00faedf0b2bfb450655151fdc9b5b6aad90..5b94c1ce37867b702a02a1659507a1f1c7de7edd 100644 --- a/image_creator/bundle_volume.py +++ b/image_creator/bundle_volume.py @@ -349,7 +349,8 @@ class BundleVolume(): [(mapped[i], filesystems[i].mpoint) for i in mapped.keys()] ) exclude = self._to_exclude() + [image] - rsync = Rsync('/', target, exclude) + rsync = Rsync('/', target, + map(lambda p: os.path.relpath(p, '/'), exclude)) msg = "Copying host files into the image" rsync.archive().run(self.out, msg) diff --git a/image_creator/rsync.py b/image_creator/rsync.py index 22d3ad782a3a82716d773aac0875f7c8d307ed1a..7c869c2e4653b504bef89bbc1a1f0e8d905456f9 100644 --- a/image_creator/rsync.py +++ b/image_creator/rsync.py @@ -55,7 +55,6 @@ class Rsync: dry_run = subprocess.Popen(cmd + ['-n', self.src, self.dest], shell=False, stdout=subprocess.PIPE, bufsize=0) - print "%r" % (cmd + ['-n', self.src, self.dest]) total = 0 for line in iter(dry_run.stdout.readline, b''): total += 1