[buildd-tools-devel] Bug#608416: Bug#608416: sbuild-createchroot overwrites files under /etc

Roger Leigh rleigh at codelibre.net
Thu Dec 30 18:45:33 UTC 2010


On Thu, Dec 30, 2010 at 07:33:40PM +0100, Cyril Brulebois wrote:
> Package: sbuild
> Version: 0.60.7-1
> Severity: important
> 
> Hi,
> 
> creating two chroots in a row (sid then experimental) leads to a single
> /etc/sbuild/chroot/sid-amd64-sbuild, which means the first version of it
> got nuked, and replaced with another version:
> | $ sudo sbuild-createchroot sid ~/opt/sid-amd64-sbuild          http://localhost:9999/debian
> | $ sudo sbuild-createchroot sid ~/opt/experimental-amd64-sbuild http://localhost:9999/debian
> | $ ls -l /etc/sbuild/chroot/sid-amd64-sbuild
> | lrwxrwxrwx 1 root root 39 Dec 30 19:23 /etc/sbuild/chroot/sid-amd64-sbuild -> /home/cyril/opt/experimental-amd64-sbuild
> 
> Since experimental has no own debootstrap script, I know of no better
> way of creating a chroot for experimental.
> 
> sbuild-creatchroot should probably refuse to create a symlink to the
> (new) directory if there's already a symlink?

I think that would be appropriate.  It could alternatively add a unique
suffix like the schroot chroot.d fragment is named (to avoid collisions).


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101230/8bdbda18/attachment.pgp>


More information about the Buildd-tools-devel mailing list