[buildd-tools-devel] Bug#595647: schroot: cannot create session with the same name as the chroot
Sascha Silbe
sascha-debian-bugs-schroot-2010-09-05 at silbe.org
Sun Sep 5 13:54:08 UTC 2010
Package: schroot
Version: 1.4.11-1
Severity: normal
schroot(1) says I can use the same name for the session as the name of the chroot (like it worked for lenny):
> Session chroots
> All sessions created with --begin-session are placed within the 'session:' namespace. A session named with --session-name may have any name, even the same
> name as the chroot it was created from, providing that it is unique within this namespace. This was not permitted in previous versions of schroot which did
> not have namespaces.
Unfortunately it doesn't work:
sascha.silbe at twin:~$ schroot -c sugar-jhbuild -n sugar-jhbuild -b
E: sugar-jhbuild: Invalid session name
sascha.silbe at twin:~$ schroot -c chroot:sugar-jhbuild -n sugar-jhbuild -b
E: sugar-jhbuild: Invalid session name
I haven't tried prefixing the session name with "session:" because schroot(1) tells me not to:
> -n, --session-name=session-name
> Name a session. The specified session-name replaces the default session name containing an automatically-generated session ID. The session name must
> not contain a namespace qualifier, since sessions are always created within the 'session:' namespace.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.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-4 filesystem operations (portable pa
ii libboost-program-options1.42. 1.42.0-4 program options library for C++
ii libboost-regex1.42.0 1.42.0-4 regular expression library for C++
ii libboost-system1.42.0 1.42.0-4 Operating system (e.g. diagnostics
ii libc6 2.11.2-3 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-12 GCC support library
ii liblockdev1 1.0.3-1.4 Run-time shared library for lockin
ii libpam0g 1.1.1-4 Pluggable Authentication Modules l
ii libstdc++6 4.4.4-12 The GNU Standard C++ Library v3
ii libuuid1 2.17.2-3.1 Universally Unique ID library
ii schroot-common 1.4.11-1 common files for schroot
schroot recommends no packages.
Versions of packages schroot suggests:
pn aufs-modules | unionfs-m <none> (no description available)
ii btrfs-tools 0.19+20100601-3 Checksumming Copy on Write Filesys
pn debootstrap <none> (no description available)
ii lvm2 2.02.66-3 The Linux Logical Volume Manager
ii unzip 6.0-4 De-archiver for .zip files
-- Configuration Files:
/etc/schroot/schroot.conf changed:
[sugar-jhbuild]
description=Debian Squeeze for sugar-jhbuild
type=block-device
device=/dev/twin_vg/chroot-sugar-jhbuild
mount-options=-o noatime,user_xattr,acl,data=journal
users=sascha.silbe
root-users=sascha.silbe
script-config=legacy/config
[squeeze-i386-build]
description=Debian Squeeze for building i386 packages
type=block-device
device=/dev/twin_vg/chroot-squeeze-i386-build
mount-options=-o noatime,user_xattr,acl,data=writeback
users=sascha.silbe
root-users=sascha.silbe
script-config=legacy/config
[squeeze-amd64-build]
description=Debian Squeeze for building amd64 packages
type=block-device
device=/dev/twin_vg/chroot-squeeze-amd64-build
mount-options=-o noatime,user_xattr,acl,data=writeback
users=sascha.silbe
root-users=sascha.silbe
script-config=legacy/config
-- no debconf information
More information about the Buildd-tools-devel
mailing list