[Piuparts-devel] Bug#754878: piuparts: support hard links with --existing-chroot option

Sven Joachim svenjoac at gmx.de
Mon Oct 27 18:30:10 UTC 2014


On 2014-07-15 16:17 +0200, Leo Iannacone wrote:

> Package: piuparts
> Severity: wishlist
> Tags: patch
>
>
> Please consider to apply the attached patch to improve performances
> while piuparts is used with --existing-chroot option.
>
> This checks if origin chroot and destination dir are on the same device,
> then acts a 'cp -al' instead of 'cp -ax' which created hard links
> instead of copy files.

Isn't there the danger that this will damage the original chroot,
e.g. when packages with setuid/setgid binaries are upgraded or removed?
It's not really nice to find out that (say) /bin/su has suddenly mode
0600 there.

Cheers,
       Sven



More information about the Piuparts-devel mailing list