Revision dd22ce7b
b/image_creator/bundle_volume.py | ||
---|---|---|
387 | 387 |
|
388 | 388 |
rsync = Rsync(self.out) |
389 | 389 |
|
390 |
# Excluded paths need to be relative to the source |
|
391 |
for excl in map(lambda p: p[1:], excluded + [image]): |
|
390 |
for excl in excluded + [image]: |
|
392 | 391 |
rsync.exclude(excl) |
393 | 392 |
|
394 | 393 |
rsync.archive().hard_links().xattrs().sparse().acls() |
... | ... | |
467 | 466 |
dirname = os.path.dirname(image) |
468 | 467 |
self.out.output("Examining available space ...", False) |
469 | 468 |
if free_space(dirname) <= size: |
470 |
raise FatalError('Not enough space under %s to host the image' %
|
|
471 |
dirname) |
|
469 |
raise FatalError("Not enough space under %s to host the temporary "
|
|
470 |
"image" % dirname)
|
|
472 | 471 |
self.out.success("sufficient") |
473 | 472 |
|
474 | 473 |
self._create_filesystems(image, partitions) |
Also available in: Unified diff