[buildd-tools-devel] Bug#559019: schroot: copyfiles doesn't support device files

Raphaël Hertzog hertzog at debian.org
Tue Dec 1 08:39:05 UTC 2009


Package: schroot
Version: 1.2.3-1+b1
Severity: normal

I run virtualbox-ose in a 64 bit chroot managed by schroot because I run
a 64 bit kernel and want to run 64 bit virtual machine but my machine is
setup as i386. For virtualbox to work properly I need /dev/vboxdrv and
/dev/vboxnetctl in the chroot and it needs to be in sync with the host
(a one-time copy is not enough due to dynamic allocation of device numbers
by the kernel).

So I wanted to put /dev/vboxdrv and /dev/vboxnetctl in
/etc/schroot/copyfiles-defaults but it leads to error message like:
/usr/bin/md5sum: /dev/vboxdrv: Invalid argument
/usr/bin/md5sum: /var/lib/schroot/mount/sid-amd64-7deb8402-75d4-4a90-9f24-c38159f6f9b9/dev/vboxdrv: Invalid argument

when the file already exists and to failures when it doesn't exist:
$ LANG=C schroot -c sid-amd64 -p
/usr/bin/md5sum: /dev/vboxdrv: Invalid argument
cp: reading `/dev/vboxdrv': Invalid argument
E: sid-amd64-ee46539c-eb7a-4cef-944f-dbd372b93442: Chroot setup failed: stage=setup-start

You want to compute md5sum only for real files (or symlinks to real files), and
use "cp -a" on other kinds of files.

Cheers,

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

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages schroot depends on:
ii  libboost-filesystem1.40.0   1.40.0-4     filesystem operations (portable pa
ii  libboost-program-options1.4 1.40.0-4     program options library for C++
ii  libboost-regex1.40.0        1.40.0-4     regular expression library for C++
ii  libboost-system1.40.0       1.40.0-4     Operating system (e.g. diagnostics
ii  libc6                       2.10.2-2     GNU C Library: Shared libraries
ii  libgcc1                     1:4.4.2-3    GCC support library
ii  liblockdev1                 1.0.3-1.2+b1 Run-time shared library for lockin
ii  libpam0g                    1.1.0-4      Pluggable Authentication Modules l
ii  libstdc++6                  4.4.2-3      The GNU Standard C++ Library v3
ii  libuuid1                    2.16.1-4     Universally Unique ID library
ii  schroot-common              1.2.3-1      common files for schroot

schroot recommends no packages.

Versions of packages schroot suggests:
ii  debootstrap                   1.0.20     Bootstrap a basic Debian system
ii  lvm2                          2.02.54-1  The Linux Logical Volume Manager
ii  unzip                         6.0-1      De-archiver for .zip files

-- no debconf information





More information about the Buildd-tools-devel mailing list