[buildd-tools-devel] Bug#726375: [Pkg-systemd-maintainers] Bug#726375: schroot: Fails during umount on system booted with systemd
Antonio Terceiro
terceiro at softwarelivre.org
Wed Oct 30 05:22:46 UTC 2013
On Tue, Oct 29, 2013 at 11:01:49PM +0100, Michael Stapelberg wrote:
> Hi Daniel,
>
> Daniel Schepler <dschepler at gmail.com> writes:
> > So, I just decided I'd try out systemd. It booted my system without any
> > problems, but I soon discovered that the x32 buildd I'm running on it isn't
> > working properly. For an example of what triggers build failures:
> Can you share your /etc/schroot/schroot.conf and steps needed to set up
> such an environment from scratch, if any? By just installing schroot and
> running the command you provided I get:
>
> $ schroot -c sid-x32-sbuild -u root -d /root -- apt-get update
> W: No chroots are defined in ‘/etc/schroot/schroot.conf’ or ‘/etc/schroot/chroot.d’
> E: sid-x32-sbuild: Chroot not found
You have to create such a chroot first, for example with
sbuild-createchroot(1).
I am affected by a similar problem, which also only happens when the
system is booted with systemd (works fine under sysvinit):
$ cat /etc/schroot/chroot.d/squeeze
[squeeze]
type=directory
description=Debian Squeeze
directory=/home/terceiro/chroots/squeeze
users=terceiro
groups=terceiro
root-users=terceiro
root-groups=root
$ schroot -c squeeze
(squeeze) terceiro at homer:~$ exit
logout
E: 10mount: umount: /var/lib/schroot/mount/squeeze-78908cf6-2aca-4bf4-8209-fafe2260397f/tmp: not mounted
E: squeeze-78908cf6-2aca-4bf4-8209-fafe2260397f: Chroot setup failed: stage=setup-stop
Then I have to manually finish the session:
$ schroot -e -c squeeze-78908cf6-2aca-4bf4-8209-fafe2260397f
After that the mounts are gone.
But if I set up a union-type setting, then it works just fine:
$ echo 'union-type=aufs' | sudo su -c 'cat >> /etc/schroot/chroot.d/squeeze'
$ cat /etc/schroot/chroot.d/squeeze
[squeeze]
type=directory
description=Debian Squeeze
directory=/home/terceiro/chroots/squeeze
users=terceiro
groups=terceiro
root-users=terceiro
root-groups=root
union-type=aufs
$ schroot -c squeeze
(squeeze) terceiro at homer:~$ exit
logout
$
And I confirm that this only happens when the system is booted with
systemd as init.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages schroot depends on:
ii libboost-filesystem1.54.0 1.54.0-3
ii libboost-iostreams1.54.0 1.54.0-3
ii libboost-program-options1.54.0 1.54.0-3
ii libboost-regex1.54.0 1.54.0-3
ii libboost-system1.54.0 1.54.0-3
ii libc6 2.17-93
ii libgcc1 1:4.8.2-1
ii liblockdev1 1.0.3-1.5+b1
ii libpam0g 1.1.3-10
ii libstdc++6 4.8.2-1
ii libuuid1 2.20.1-5.5
ii schroot-common 1.6.5-1
schroot recommends no packages.
Versions of packages schroot suggests:
pn aufs-modules | unionfs-modules <none>
ii btrfs-tools 0.19+20130705-3
ii debootstrap 1.0.55
ii lvm2 2.02.98-6+b1
ii qemu-user-static 1.6.0+dfsg-2
-- no debconf information
--
Antonio Terceiro <terceiro at debian.org>
--
Antonio Terceiro <terceiro at softwarelivre.org>
http://softwarelivre.org/terceiro
-------------- 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/20131029/db0978f0/attachment.sig>
More information about the Buildd-tools-devel
mailing list