diff --git a/image_creator/bundle_volume.py b/image_creator/bundle_volume.py index 3eb810a68d8ffdeca0ce6ae389d4c5fdddd0373e..56d4a78e8833ea9f460c7f8fbf873018e77a503c 100644 --- a/image_creator/bundle_volume.py +++ b/image_creator/bundle_volume.py @@ -385,8 +385,7 @@ class BundleVolume(object): rsync = Rsync(self.out) # Excluded paths need to be relative to the source - for excl in map(lambda p: os.path.relpath(p, '/'), - excluded + [image]): + for excl in map(lambda p: p[1:], excluded + [image]): rsync.exclude(excl) rsync.archive().hard_links().xattrs().sparse().acls()