[Buildd-tools-devel] Bug#512131: schroot: sessions and chroots can't be named the same... inconsistently

Adeodato Simó dato at net.com.org.es
Sat Jan 17 16:53:00 UTC 2009


Package: schroot
Version: 1.2.1-1

Hello, please consider this:

    % schroot --list
    etch
    etch-i386
    etch-i386-source
    etch-source

    % schroot -b -n etch -c etch
    etch

    % schroot -r -c etch
    E: /var/lib/schroot/session/etch: line 1 [etch]:
      A chroot or alias 'etch' already exists with this name
    I: Duplicate names are not allowed

    % schroot -e -c etch
    E: /var/lib/schroot/session/etch: line 1 [etch]:
      A chroot or alias 'etch' already exists with this name
    I: Duplicate names are not allowed

    % sudo sed -i -e 's/\[etch\]/[etch_foo]/' /etc/schroot/schroot.conf
    % schroot -e -c etch

Please either allow sessions to be named as chroots (preferred if there
is no ambiguity possible), or at least don't allow for sessions to be
created with the same name as a chroot!

But since the config file could be modified, and a chroot added or
renamed that would take the name of an existing session (and there is
no way to prevent that, and then one won't be able to access the
session), maybe letting them live in separate namespaces is worth
considering.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
If there is a sin against life, it consists perhaps not so much in
despairing of life as in hoping for another life and in eluding the
implacable grandeur of this life.
                -- Albert Camus






More information about the Buildd-tools-devel mailing list