[buildd-tools-devel] Bug#586198: 20nssdatabases fails if file does not exist in chroot

Bastian Blank waldi at debian.org
Thu Jun 17 09:42:50 UTC 2010


Package: schroot
Version: 1.4.4-1
Severity: important
File: /etc/schroot/setup.d/20nssdatabases

20nssdatabases fails if the nss database does not already exist in the
chroot:
| $ dchroot-dsa sid-amd64
| E: 20nssdatabases: /usr/bin/stat: cannot stat `/var/lib/schroot/mount/sid-amd64-388a214b-7be9-449d-9bf3-825a2042bded/etc/services': No such file or directory
| E: sid-amd64-388a214b-7be9-449d-9bf3-825a2042bded: Chroot setup failed: stage=setup-start

The easiest fix is to use
| dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :)

Bastian

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages schroot depends on:
ii  libboost-filesystem1.42.0     1.42.0-3   filesystem operations (portable pa
ii  libboost-program-options1.42. 1.42.0-3   program options library for C++
ii  libboost-regex1.42.0          1.42.0-3   regular expression library for C++
ii  libboost-system1.42.0         1.42.0-3   Operating system (e.g. diagnostics
ii  libc6                         2.11.1-3   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.4-5  GCC support library
ii  liblockdev1                   1.0.3-1.4  Run-time shared library for lockin
ii  libpam0g                      1.1.1-3    Pluggable Authentication Modules l
ii  libstdc++6                    4.4.4-5    The GNU Standard C++ Library v3
ii  libuuid1                      2.17.2-3   Universally Unique ID library
ii  schroot-common                1.4.4-1    common files for schroot

schroot recommends no packages.

Versions of packages schroot suggests:
pn  aufs-modules | unionfs-module <none>     (no description available)
pn  debootstrap                   <none>     (no description available)
ii  lvm2                          2.02.66-1  The Linux Logical Volume Manager
ii  unzip                         6.0-4      De-archiver for .zip files

-- Configuration Files:
/etc/schroot/default/copyfiles changed [not included]
/etc/schroot/default/fstab changed [not included]
/etc/schroot/schroot.conf changed [not included]
/etc/schroot/setup.d/20nssdatabases changed [not included]

-- no debconf information





More information about the Buildd-tools-devel mailing list