[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Andreas Beckmann
debian at abeckmann.de
Fri Dec 23 10:27:20 UTC 2011
The following commit has been merged in the master branch:
commit 22dc35d3d5e068eac182d54dd6dc44852ff6d3f2
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Nov 6 15:00:57 2011 +0100
use tar --one-file-system
instead of setting explicit excludes for /proc, use
tar --one-file-system ...
to exclude other mountpoints (from --bindmount) in addition to /proc
(does not work if --bindmount and --tmpdir are on the same filesystem,
causing it to include a useless copy of the bindmount's content in the
tarball which is currently done for all bindmounts)
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts.py b/piuparts.py
index 14838da..474991e 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -778,7 +778,7 @@ class Chroot:
self.run(["apt-get", "clean"])
logging.debug("Saving %s to %s." % (self.name, result))
- run(['tar', '--exclude', './proc/*', '-czf', result, '--exclude', 'tmp/scripts', '-C', self.name, './'])
+ run(['tar', '-czf', result, '--one-file-system', '--exclude', 'tmp/scripts', '-C', self.name, './'])
def unpack_from_tgz(self, tarball):
"""Unpack a tarball to a chroot."""
--
piuparts git repository
More information about the Piuparts-commits
mailing list