[Buildd-tools-devel] Bug#428808: schroot: Fails if chroot's /etc/resolv.conf already points to the right resolv.conf

Raphael Hertzog hertzog at debian.org
Thu Jun 14 10:12:36 UTC 2007


Package: schroot
Version: 1.1.4-1
Severity: normal

Following my previous bug report I switched my chroot to "plain" type and
got this:
rhertzog at rivendell:~$ schroot -c sarge
cp: `/etc/resolv.conf' and `/var/lib/schroot/mount/sarge-dc129170-7fe7-44ad-9a5e-a7f4e67a716a/etc/resolv.conf' are the same file
E: sarge-dc129170-7fe7-44ad-9a5e-a7f4e67a716a: Chroot setup failed: stage=setup-start

This is because I have <chroot>/etc/resolv.conf as a symlink pointing
to .host/resolv.conf and <chroot>/etc/.host/ is bind mounted to the real /etc/.

It looks like /etc/schroot/setup.d/20network could be enhanced to check
for this specific case at least. Or it could simply do nothing if the
chroot's resolv.conf is a symlink. 

-- 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