[buildd-tools-devel] Bug#622735: Bug#622735: sbuild-createchroot fails to chown /build due to non-existing user & group

Roger Leigh rleigh at codelibre.net
Sun May 29 10:23:11 UTC 2011


tags 622735 + fixed-upstream pending
thanks

On Thu, Apr 14, 2011 at 11:58:11AM +0200, Raphaël Hertzog wrote:
> I was only running:
> $ sbuild-createchroot wheezy wheezy-i386-sbuild http://ftp.debian.org/debian
> [...]
> I: Please rename and modify this file as required.
> I: sudo chroot configuration linked as
> /etc/sbuild/chroot/wheezy-i386-sbuild.
> chown: invalid user: `sbuild:sbuild'
> E: Failed to set sbuild:sbuild ownership on /build
> Failed to set up chroot
> E: Error creating chroot session: skipping apt update
> I: Successfully set up wheezy chroot.
> I: Run "sbuild-adduser" to add new sbuild users.
> 
> It looks like the chown is tried while the NSS files have not yet been
> copied over.

Yes, this was due to the Chroot class calling ChrootSetup::basesetup()
when the session is created to do the apt update/upgrade.  basesetup()
depended upon the sbuild user and group existing in the chroot to
chown various bits.

I've updated sbuild-createchroot to explicitly copy the sbuild user and
group into the chroot so that this can't fail.


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/20110529/dc1cea67/attachment.pgp>


More information about the Buildd-tools-devel mailing list