On Fri, Nov 01, 2013 at 03:14:05AM +0100, Cyril Brulebois wrote: > The last bit failed with: > | D: Running command: schroot -d / -c > sid-amd64-sbuild-59d745d4-bd00-4c4d-82cb-1b21032d8205 --run-session -q -u > root -p -- getent group sbuild > | /bin/sh: 1: cannot create > /var/lib/schroot/mount/sid-amd64-sbuild-59d745d4-bd00-4c4d-82cb-1b21032d8205/etc/group: > Permission denied > | E: Failed to create group sbuild > | Failed to set up chroot > > Looking at the "mount" output, that reminded me I was running under > systemd, so I wondered whether switching it off would help. And it > helped indeed! > > I suspect there's some interference between some schroot things and > systemd, but filing it against sbuild for now, since that's where I > hit the bug so far.
The failure is trying to run getent group sbuild >> ${chroot}/etc/group However, this only works as root, and it's only used as a fallback in the unusual case that the passwd/group databases in the chroot are out of sync with the base system. The real question here is why the system databases weren't copied over during the session setup. I would suggest trying to run schroot without sbuild and see that if you start a new session with schroot -b -n test -c sid-amd64-sbuild -v --debug=notice and see if there is anything group-related in the output. After this completes, is there a group file in the schroot directory? Does schroot -r -c test -- getent group sbuild succeed or fail? Does "getent group sbuild" work correctly on the base system when systemd is running? How about "getent group"? sbuild and schroot don't really do anything which should be affected by the init system in use. Both just make use of standard POSIX interfaces, and if systemd causes changes in how these basic libc calls function, that's a bit worrying. The schroot db copy is as simple as getent $db >> $chroot/etc/$db Any more information you could provide regarding the above would be much appreciated. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools `- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org