Revision 1fa75c4c image_creator/bundle_volume.py

b/image_creator/bundle_volume.py
377 377
                                         [(mapped[i], filesystem[i].mpoint)
378 378
                                         for i in mapped.keys()])
379 379
                exclude = self._to_exclude() + [image]
380
                rsync = Rsync('/', target,
381
                              map(lambda p: os.path.relpath(p, '/'), exclude))
382
                rsync.archive().run(self.out)
380

  
381
                rsync = Rsync(self.out)
382

  
383
                # Excluded paths need to be relative to the source
384
                for excl in map(lambda p: os.path.relpath(p, '/'), exclude):
385
                    rsync.exclude(excl)
386

  
387
                rsync.archive().hard_links().xattrs().sparse().acls()
388
                rsync.run('/', target)
383 389

  
384 390
                # We need to replace the old UUID referencies with the new
385 391
                # ones in grub configuration files and /etc/fstab for file

Also available in: Unified diff