[Buildd-tools-devel] Bug#416193: schroot: Support for ending sessions instead of recovering them

Federico Di Gregorio fog at debian.org
Sun Mar 25 19:30:43 CET 2007


Package: schroot
Version: 1.0.5-1
Severity: wishlist
Tags: patch

Sometimes a program crashes and leave the schroot session open for some
reson and at the next boot a lot of bind mounts are done while
recovering lost sessions. I find much useful to end such sessions, so I
wrote a patch that lets the user decide what she wnat to do by adding
a configuration option in /etc/default/schroot. Probably we could do
even better and separate behaviour depending on session type but the
current recover/end patch is enough for me (and does not change anything
for users that don't need it). Patch attached.

federico

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)

Versions of packages schroot depends on:
ii  libboost 1.33.1-10                       program options library for C++
ii  libboost 1.33.1-10                       regular expression library for C++
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libgcc1  1:4.1.1-21                      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.1.1-21                        The GNU Standard C++ Library v3
ii  libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-2 universally unique id library

schroot recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schroot
Type: application/x-shellscript
Size: 1570 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20070325/a3af1af0/schroot.bin
-------------- next part --------------
# This is a configuration file for /etc/init.d/schroot; it allows you to
# perform common modifications to the behavior of schroot initialization
# without editing the init script (and thus getting prompted by dpkg on
# upgrades.) Note that the defaults defined here are not used when
# invoking the schroot command; to configure schroot behaviour have a
# look at /etc/schroot/* and the schroot manual page ("man schroot".)

# What do we want to do with "orphan" sessions? Recover them (leave
# empty or set to "recover") or just end them (set to "end")?
SESSIONS_RECOVER="recover"



More information about the Buildd-tools-devel mailing list