[Piuparts-devel] [PATCH] use tar --one-file-system, exclude /tmp/scripts

Andreas Beckmann debian at abeckmann.de
Sun Nov 6 11:26:32 UTC 2011


On 2011-11-06 12:06, Holger Levsen wrote:
> On Samstag, 5. November 2011, Andreas Beckmann wrote:
>> instead of setting explicit excludes for /proc, use
>>   tar --one-file-system ...
>> to exclude other mountpoints (from --bindmount) in addition to /proc
>> (may not work if --bindmount and --tmpdir are on the same filesystem)
> 
> please test if this is true. if this is true, it doesnt work and this patch 
> does harm!

Current situation: bindmount content is included in the tarball. Tarball
is extracted and bindmounts are applied on top of it, so this is useless
data in the tarball that gets shadowed. If --one-file-system does not
catch it, it does no harm because nothing changes compared to current
behaviour.
--one-file-system does catch /proc.

Andreas



More information about the Piuparts-devel mailing list