[buildd-tools-devel] Bug#608416: Bug#608416: sbuild-createchroot overwrites files under /etc
Roger Leigh
rleigh at codelibre.net
Mon May 30 10:04:02 UTC 2011
tags 608416 + fixed-upstream pending
thanks
On Thu, Dec 30, 2010 at 07:33:40PM +0100, Cyril Brulebois wrote:
> 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?
This is now done. A symlink is only created if one does not already
exist; we no longer delete and replace any symlink already present.
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: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110530/3ce8041b/attachment.pgp>
More information about the Buildd-tools-devel
mailing list