[Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed

Vincent Danjean Vincent.Danjean at ens-lyon.org
Tue Mar 10 12:29:19 UTC 2009


Package: sbuild
Version: 0.58.0-1
Followup-For: Bug #434396

  Hi,

  With 0.58.0-1, symlinks in / are not needed anymore.
However, for -source chroot, "schroot --info" (or "schroot --location")
does NOT indicate the location of the chroot.

  The small patch below "fixes" the problem for me but this is a hack.
The good solution is probably either manage -source chroot specificaly
in schroot or clone this bug report to schroot to make it display
the location.


--- /tmp/ChrootInfoSchroot.pm	2009-03-10 13:03:44.000000000 +0100
+++ ChrootInfoSchroot.pm	2009-03-10 13:01:24.000000000 +0100
@@ -84,6 +84,9 @@
 
     close CHROOT_DATA or die "Can't close schroot pipe getting chroot data";
 
+    if ($tmp{'Location'} eq "") {
+        $tmp{'Location'} = '/var/lib/schroot/mount/'.$chroot;
+    }
     if ($self->get_conf('DEBUG')) {
 	print STDERR "Found schroot chroot: $chroot\n";
 	foreach (sort keys %tmp) {


  Regards,
    Vincent


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

Kernel: Linux 2.6.27-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sbuild depends on:
ii  adduser                       3.110      add and remove users and groups
ii  apt                           0.7.20.2   Advanced front-end for dpkg
ii  dctrl-tools                   2.13.1     Command-line tools to process Debi
ii  devscripts                    2.10.47    scripts to make the life of a Debi
ii  dpkg-dev                      1.14.25    Debian package development tools
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 
ii  perl-modules                  5.10.0-19  Core Perl modules
ii  postfix [mail-transport-agent 2.5.5-1.1  High-performance mail transport ag
ii  schroot                       1.2.1-1    Execute commands in a chroot envir

Versions of packages sbuild recommends:
ii  debootstrap                   1.0.11     Bootstrap a basic Debian system
ii  fakeroot                      1.12.2     Gives a fake root environment

Versions of packages sbuild suggests:
pn  deborphan                     <none>     (no description available)
ii  wget                          1.11.4-2   retrieves files from the web

-- no debconf information





More information about the Buildd-tools-devel mailing list