[Buildd-tools-devel] Bug#428805: schroot: Fails to start a "directory" chroot

Raphael Hertzog hertzog at debian.org
Thu Jun 14 09:57:42 UTC 2007


Package: schroot
Version: 1.1.4-1
Severity: important

Hello,

I upgraded to sid yesterday and schroot is now broken for me:

rhertzog at rivendell:~$ schroot -c sarge
mount: proc already mounted or /var/lib/schroot/mount/sarge-664c9622-4459-4624-93d0-e4bb10aa965b/proc busy
mount: according to mtab, proc is mounted on /proc
E: sarge-664c9622-4459-4624-93d0-e4bb10aa965b: Chroot setup failed: stage=setup-start

Same in -v :
rhertzog at rivendell:~$ schroot -v -c sarge
I: Executing '00check setup-start ok'
AUTH_USER=rhertzog
AUTH_VERBOSITY=verbose
MOUNT_DIR=/var/lib/schroot/mount
LIBEXEC_DIR=/usr/lib/schroot
PID=21751
SESSION_ID=sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
CHROOT_TYPE=directory
CHROOT_NAME=sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
CHROOT_DESCRIPTION=Debian sarge (oldstable)
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
CHROOT_LOCATION=/home/rhertzog/local/chroot/sarge
CHROOT_PATH=/var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
CHROOT_MOUNT_DEVICE=
I: Executing '05file setup-start ok'
I: Executing '05lvm setup-start ok'
I: Executing '10mount setup-start ok'
Mounting /home/rhertzog/local/chroot/sarge on /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
/home/rhertzog/local/chroot/sarge on /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36 type none (rw,bind)
Mounting proc on /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/proc
mount: proc already mounted or /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/proc busy
mount: according to mtab, proc is mounted on /proc
I: Executing '50sbuild setup-stop fail'
I: Executing '50chrootname setup-stop fail'
I: Executing '30passwd setup-stop fail'
I: Executing '20network setup-stop fail'
I: Executing '15killprocs setup-stop fail'
Killing processes run inside /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
I: Executing '10mount setup-stop fail'
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/proc
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/dev/pts
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/dev/shm
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/dev/.static/dev
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/dev
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/tmp
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/sarge/etc/.host
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/proc
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/dev/pts
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/dev/shm
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/dev/.static/dev
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/dev
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/tmp
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/home/rhertzog/local/chroot/unstable/etc/.host
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/home
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home/rhertzog/local/chroot/unstable/etc/.host
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/home
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36/etc/.host
Unmounting /var/lib/schroot/mount/sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36
I: Executing '05lvm setup-stop fail'
I: Executing '05file setup-stop fail'
I: Executing '00check setup-stop fail'
E: sarge-215a3c7c-866a-4e4c-ae64-cf5babe5fc36: Chroot setup failed: stage=setup-start


I customized /etc/schroot/setup.d/10mount but simply by adding two lines:
@@ -81,7 +100,7 @@
            do_mount "-t tmpfs"   "tmpfs"    "${CHROOT_PATH}/dev/shm"
            do_mount "-o rw,bind" "/home"    "${CHROOT_PATH}/home"
            do_mount "-o rw,bind" "/tmp"     "${CHROOT_PATH}/tmp"
+           # RH-specific hack
+           test -e "${CHROOT_PATH}/etc/.host" || mkdir -p "${CHROOT_PATH}/etc/.host"
+           do_mount "-o rw,bind" "/etc"     "${CHROOT_PATH}/etc/.host"
        fi

This change is certainly not responsible of the failure that I have. At first look,
it rather looks like a new behaviour of "mount" (or something more stupid, like the
/proc mount point not existing).

My chroot is defined this way:
[sarge]
type=directory
description=Debian sarge (oldstable)
location=/home/rhertzog/local/chroot/sarge
priority=2
groups=rhertzog
aliases=oldstable
run-setup-scripts=true
run-exec-scripts=true


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages schroot depends on:
ii  libboost 1.34.0-1                        program options library for C++
ii  libboost 1.34.0-1                        regular expression library for C++
ii  libc6    2.5-11                          GNU C Library: Shared libraries
ii  libgcc1  1:4.2-20070609-1                GCC support library
ii  liblockd 1.0.3-1.2                       Run-time shared library for lockin
ii  libpam0g 0.79-4                          Pluggable Authentication Modules l
ii  libstdc+ 4.2-20070609-1                  The GNU Standard C++ Library v3
ii  libuuid1 1.39+1.40-WIP-2007.04.07+dfsg-2 universally unique id library
ii  schroot- 1.1.4-1                         common files for schroot

schroot recommends no packages.

-- no debconf information




More information about the Buildd-tools-devel mailing list