Debian Bug report logs - #434396
sbuild: LVM snapshot -source chroot not correctly managed

version graph

Package: sbuild; Maintainer for sbuild is Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>; Source for sbuild is src:sbuild (PTS, buildd, popcon).

Reported by: Vincent Danjean <vdanjean@debian.org>

Date: Mon, 23 Jul 2007 15:48:01 UTC

Severity: normal

Fixed in version schroot/1.4.8

Done: Roger Leigh <rleigh@codelibre.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <vdanjean@debian.org>:
New Bug report received and forwarded. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <vdanjean@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: sbuild: LVM snapshot -source chroot not correctly managed
Date: Mon, 23 Jul 2007 17:42:34 +0200
Package: sbuild
Version: 0.56
Severity: normal

  Hi,

  I use a LVM snapshop to build my package. To update (and after
upgrade) chroot, I would like to be able to type:
/usr/share/sbuild/updatechroot sid-source

I've the following config :
* /etc/schroot/schroot.conf
[sid]
type=lvm-snapshot
location=/sid
groups=sbuild,root
root-groups=sbuild
source-root-groups=sbuild
device=/dev/atsina/sbuilder
lvm-snapshot-options=--size 2G
[...]

* /proc/mounts
[...]
/dev/mapper/atsina-sbuilder /srv/sbuilder ext3 rw,data=ordered 0 0

* ls -l /src/sbuilder
total 24
drwxr-xr-x 22 root root  4096 2007-05-09 16:04 etch
drwx------  2 root root 16384 2007-07-10 09:29 lost+found
drwxr-xr-x 22 root root  4096 2007-07-17 13:02 sid

  You can note that the 'location' parameter in schroot.conf refer (as
stated by the documentation) to the RELATIVE path inside the LVM
filesystem.
"schroot -c sid bash" gives me a bash shell in a snapshot
"schroot -c sid-source bash" gives me a bash shell in the original
filesystem.


  In /usr/share/perl5/Sbuild/Chroot.pm, in function "_setup_options",
you have the test:
        if (defined($chroots{$distribution}) &&
	            -d $chroots{"$distribution"}->{'Location'}) {
Of course, "/sid" does not exists on my system. So the command
"/usr/share/sbuild/updatechroot sid-source" fails with the error message
"sid-source chroot does not exist" and leave me with bind-mounted
directores that I've to manually unmount :
$ mount
/dev/mapper/atsina-sbuilder on /var/lib/schroot/mount/sid-source type ext3 (rw,sync,user_xattr)
proc on /var/lib/schroot/mount/sid-source/sid/proc type proc (rw)
/dev/pts on /var/lib/schroot/mount/sid-source/sid/dev/pts type none (rw,bind)
tmpfs on /var/lib/schroot/mount/sid-source/sid/dev/shm type tmpfs (rw)
/home on /var/lib/schroot/mount/sid-source/sid/home type none (rw,bind)
/tmp on /var/lib/schroot/mount/sid-source/sid/tmp type none (rw,bind)


  To work-around this problem, I tried to add this symlink:
"/sid -> /srv/sbuilder/sid" on my root filesystem.
It works.

  I also tried to modify the test in Chroot.pm.
In this case, it fails later with:
Error in tempfile() using /sid//var/lib/sbuild/apt.conf.XXXXXX: Parent
directory (/sid//var/lib/sbuild/) is not a directory at
/usr/share/perl5/Sbuild/Chroot.pm line 145
  So $chroots{"$distribution"}->{'Location'} seems to be used at several
places.

  Best regards,
    Vincent

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (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.104      add and remove users and groups
ii  apt                           0.7.3      Advanced front-end for dpkg
ii  dctrl-tools                   2.9.3      Command-line tools to process Debi
ii  dpkg-dev                      1.14.5     package building tools for Debian
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  perl-modules                  5.8.8-7    Core Perl modules
ii  postfix [mail-transport-agent 2.4.3-1    High-performance mail transport ag
ii  schroot                       1.1.5-1    Execute commands in a chroot envir

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

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@whinlatter.ukfsn.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@whinlatter.ukfsn.org>
To: Vincent Danjean <vdanjean@debian.org>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Mon, 23 Jul 2007 22:49:10 +0100
[Message part 1 (text/plain, inline)]
Vincent Danjean <vdanjean@debian.org> writes:

>   I use a LVM snapshop to build my package. To update (and after
> upgrade) chroot, I would like to be able to type:

> /usr/share/sbuild/updatechroot sid-source
>   In /usr/share/perl5/Sbuild/Chroot.pm, in function "_setup_options",
> you have the test:
>         if (defined($chroots{$distribution}) &&
> 	            -d $chroots{"$distribution"}->{'Location'}) {
> Of course, "/sid" does not exists on my system. So the command
> "/usr/share/sbuild/updatechroot sid-source" fails with the error message
> "sid-source chroot does not exist" and leave me with bind-mounted
> directores that I've to manually unmount :

>   To work-around this problem, I tried to add this symlink:
> "/sid -> /srv/sbuilder/sid" on my root filesystem.
> It works.

Thanks for reporting this.  I think we probably want the "Path" rather
than the "Location", as reported by "schroot -i".  However, I will
need to double check that before making any changes.

Just to confirm that: if you run

  % schroot -c sid bash

what is the output of

  % schroot -i --all-sessions
  % schroot --config --all-sessions

? (run this from another shell prompt).


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <vdanjean@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #15 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <vdanjean@debian.org>
To: Roger Leigh <rleigh@whinlatter.ukfsn.org>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 24 Jul 2007 08:13:02 +0200
Roger Leigh wrote:
> Just to confirm that: if you run
> 
>   % schroot -c sid bash
> 
> what is the output of
> 
>   % schroot -i --all-sessions

danjean@atsina:~$ LC_ALL=C schroot -i --all-sessions
  --- Session ---
  Name                   sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
  Description            Debian sid snapshot
  Type                   lvm-snapshot
  Priority               3
  Users
  Groups                 sbuild root
  Root Users
  Root Groups            sbuild
  Aliases
  Environment Filter     ^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$
  Run Setup Scripts      true
  Run Execution Scripts  true
  Script Configuration   script-defaults
  Session Managed        true
  Personality            linux
  Location               /sid
  Mount Location         /var/lib/schroot/mount/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
  Path                   /var/lib/schroot/mount/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926/sid
  Mount Device           /dev/atsina/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
  Device                 /dev/atsina/sbuilder
  Mount Options          -o atime,sync,user_xattr
  Source Users
  Source Groups
  Source Root Users
  Source Root Groups     sbuild
  LVM Snapshot Device    /dev/atsina/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
  LVM Snapshot Options   --size 2G
danjean@atsina:~$

>   % schroot --config --all-sessions

danjean@atsina:~$ LC_ALL=C schroot --config --all-sessions
# schroot configuration generated by schroot 1.1.5 on 24 Jul 2007

[sid-4be9f252-e72f-43d7-a51d-4d6875d4b926]
active=true
aliases=
command-prefix=
description=Debian sid snapshot
device=/dev/atsina/sbuilder
environment-filter=^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$
groups=sbuild,root
location=/sid
lvm-snapshot-device=/dev/atsina/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
lvm-snapshot-options=--size 2G
mount-device=/dev/atsina/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
mount-location=/var/lib/schroot/mount/sid-4be9f252-e72f-43d7-a51d-4d6875d4b926
mount-options=-o atime,sync,user_xattr
personality=linux
priority=3
root-groups=sbuild
root-users=
run-exec-scripts=true
run-setup-scripts=true
script-config=script-defaults
source-groups=
source-root-groups=sbuild
source-root-users=
source-users=
type=lvm-snapshot
users=
danjean@atsina:~$

> ? (run this from another shell prompt).

Note that when I run "schroot -c sid-source  bash", I do not have any session
created :
danjean@atsina:~$ LC_ALL=C schroot -i --all-sessions
W: No chroots are defined in '/var/lib/schroot/session'
W: The specified chroots are not defined in '/var/lib/schroot/session'
danjean@atsina:~$ LC_ALL=C schroot -i --all-chroots
  --- Chroot ---
  Name                   sid
  Description            Debian sid snapshot
  Type                   lvm-snapshot
  Priority               3
  Users
  Groups                 sbuild root
  Root Users
  Root Groups            sbuild
  Aliases                unstable default unstable-sbuild
  Environment Filter     ^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$
  Run Setup Scripts      true
  Run Execution Scripts  true
  Script Configuration   script-defaults
  Session Managed        true
  Personality            linux
  Location               /sid
  Path                   /sid
  Device                 /dev/atsina/sbuilder
  Mount Options          -o atime,sync,user_xattr
  Source Users
  Source Groups
  Source Root Users
  Source Root Groups     sbuild
  LVM Snapshot Options   --size 2G

  --- Chroot ---
  Name                   sid-source
  Description            Debian sid snapshot (source chroot)
  Type                   block-device
  Priority               3
  Users
  Groups
  Root Users
  Root Groups            sbuild
  Aliases                unstable-source default-source unstable-sbuild-source
  Environment Filter     ^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$
  Run Setup Scripts      true
  Run Execution Scripts  true
  Script Configuration   script-defaults
  Session Managed        false
  Personality            linux
  Location               /sid
  Path                   /sid
  Mount Device           /dev/atsina/sbuilder
  Device                 /dev/atsina/sbuilder
  Mount Options          -o atime,sync,user_xattr
danjean@atsina:~$

  Best regards,
    Vincent

PS: I will be without any internet connection for 10 days from today.


> Regards,
> Roger





Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@whinlatter.ukfsn.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #20 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@whinlatter.ukfsn.org>
To: Vincent Danjean <vdanjean@debian.org>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Mon, 21 Jan 2008 23:47:54 +0000
[Message part 1 (text/plain, inline)]
Hi,

Sorry for the delay in replying to this bug.  testing migrations
and time prevented a new sbuild upload until a few weeks ago.
sbuild 0.57.0-1 or later should fix this bug.

Please could you confirm if this fixes the bug for you?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <vdanjean@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #25 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <vdanjean@debian.org>
To: Roger Leigh <rleigh@whinlatter.ukfsn.org>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 22 Jan 2008 09:46:20 +0100
Roger Leigh wrote:
> Hi,
> 
> Sorry for the delay in replying to this bug.  testing migrations
> and time prevented a new sbuild upload until a few weeks ago.
> sbuild 0.57.0-1 or later should fix this bug.
> 
> Please could you confirm if this fixes the bug for you?

I will not have the time this week: I need to keep a working sbuild
and will not have time to correct the situation if there is still a bug.
  I will try next week. Do not hesitate to ping me if I forget.

  Best regards,
    Vincent




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@whinlatter.ukfsn.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #30 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@whinlatter.ukfsn.org>
To: Vincent Danjean <vdanjean@debian.org>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Sun, 20 Apr 2008 13:29:59 +0100
[Message part 1 (text/plain, inline)]
Vincent Danjean <vdanjean@debian.org> writes:

> Roger Leigh wrote:
>> Hi,
>> 
>> Sorry for the delay in replying to this bug.  testing migrations
>> and time prevented a new sbuild upload until a few weeks ago.
>> sbuild 0.57.0-1 or later should fix this bug.
>> 
>> Please could you confirm if this fixes the bug for you?
>
> I will not have the time this week: I need to keep a working sbuild
> and will not have time to correct the situation if there is still a bug.
>   I will try next week. Do not hesitate to ping me if I forget.

Hi, did you have a chance to check this was fixed yet?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <vdanjean@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #35 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <vdanjean@debian.org>
To: Roger Leigh <rleigh@whinlatter.ukfsn.org>
Cc: 434396@bugs.debian.org
Subject: Re: Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Wed, 21 May 2008 16:46:18 +0200
Roger Leigh wrote:
> Vincent Danjean <vdanjean@debian.org> writes:
> 
>> Roger Leigh wrote:
>>> Hi,
>>>
>>> Sorry for the delay in replying to this bug.  testing migrations
>>> and time prevented a new sbuild upload until a few weeks ago.
>>> sbuild 0.57.0-1 or later should fix this bug.
>>>
>>> Please could you confirm if this fixes the bug for you?
>> I will not have the time this week: I need to keep a working sbuild
>> and will not have time to correct the situation if there is still a bug.
>>   I will try next week. Do not hesitate to ping me if I forget.
> 
> Hi, did you have a chance to check this was fixed yet?

  I'm sorry to report that it is not fixed: sbuild-update unstable-source
does not work without the symlink in /

danjean@atsina:/$ ls -l sid
lrwxrwxrwx 1 root root 16 jui 23  2007 sid -> srv/sbuilder/sid
danjean@atsina:/$ sudo rm sid
danjean@atsina:/$ mount
/dev/mapper/atsina-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdd1 on /boot type ext3 (rw)
/dev/mapper/atsina-home on /home type ext3 (rw)
/dev/mapper/atsina-buildbot on /srv/buildbot type ext3 (rw)
/dev/mapper/atsina-sbuilder on /srv/sbuilder type ext3 (rw)
proc on /srv/sbuilder/sid/proc type proc (rw)
/tmp on /srv/sbuilder/sid/tmp type none (rw,bind)
/var/cache/apt/archives on /srv/sbuilder/sid/var/cache/apt/archives type none (rw,bind)
proc on /srv/sbuilder/etch/proc type proc (rw)
/tmp on /srv/sbuilder/etch/tmp type none (rw,bind)
/var/cache/apt/archives on /srv/sbuilder/etch/var/cache/apt/archives type none (rw,bind)
automount(pid2454) on /users/huron type autofs (rw,fd=4,pgrp=2454,minproto=2,maxproto=4)
nfs-id.imag.fr:/p3/danjean on /users/huron/danjean type nfs (rw,addr=129.88.69.107)
danjean@atsina:/$ sbuild-update unstable-source
unstable-source chroot does not exist
danjean@atsina:/$ mount
/dev/mapper/atsina-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdd1 on /boot type ext3 (rw)
/dev/mapper/atsina-home on /home type ext3 (rw)
/dev/mapper/atsina-buildbot on /srv/buildbot type ext3 (rw)
/dev/mapper/atsina-sbuilder on /srv/sbuilder type ext3 (rw)
proc on /srv/sbuilder/sid/proc type proc (rw)
/tmp on /srv/sbuilder/sid/tmp type none (rw,bind)
/var/cache/apt/archives on /srv/sbuilder/sid/var/cache/apt/archives type none (rw,bind)
proc on /srv/sbuilder/etch/proc type proc (rw)
/tmp on /srv/sbuilder/etch/tmp type none (rw,bind)
/var/cache/apt/archives on /srv/sbuilder/etch/var/cache/apt/archives type none (rw,bind)
automount(pid2454) on /users/huron type autofs (rw,fd=4,pgrp=2454,minproto=2,maxproto=4)
nfs-id.imag.fr:/p3/danjean on /users/huron/danjean type nfs (rw,addr=129.88.69.107)
/dev/mapper/atsina-sbuilder on /var/lib/schroot/mount/sid-source type ext3 (rw,sync,user_xattr)
proc on /var/lib/schroot/mount/sid-source/sid/proc type proc (rw)
/dev/pts on /var/lib/schroot/mount/sid-source/sid/dev/pts type none (rw,bind)
tmpfs on /var/lib/schroot/mount/sid-source/sid/dev/shm type tmpfs (rw)
/home on /var/lib/schroot/mount/sid-source/sid/home type none (rw,bind)
/tmp on /var/lib/schroot/mount/sid-source/sid/tmp type none (rw,bind)
/var/cache/apt/archives on /var/lib/schroot/mount/sid-source/sid/var/cache/apt/archives type none (rw,bind)
danjean@atsina:/$ sudo umount /var/lib/schroot/mount/sid-source/sid/var/cache/apt/archives /var/lib/schroot/mount/sid-source/sid/tmp /var/lib/schroot/mount/sid-source/sid/home /var/lib/schroot/mount/sid-source/sid/dev/shm /var/lib/schroot/mount/sid-source/sid/dev/pts /var/lib/schroot/mount/sid-source/sid/proc /var/lib/schroot/mount/sid-source
danjean@atsina:/$ sudo ln -s srv/sbuilder/sid sid
danjean@atsina:/$ sbuild-update unstable-source
Updating unstable-source chroot...
/usr/bin/apt-get  update
Get:1 http://www-id.imag.fr sid Release.gpg [189B]
[...]

  Regards,
    Vincent





Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Tue, 10 Mar 2009 12:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <Vincent.Danjean@ens-lyon.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 10 Mar 2009 12:39:05 GMT) (full text, mbox, link).


Message #40 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
To: Debian Bug Tracking System <434396@bugs.debian.org>
Subject: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 10 Mar 2009 13:29:19 +0100
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Mon, 30 Aug 2010 10:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Didier Raboud <didier@raboud.com>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Mon, 30 Aug 2010 10:21:07 GMT) (full text, mbox, link).


Message #45 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Didier Raboud <didier@raboud.com>
To: Debian Bug Tracking System <434396@bugs.debian.org>
Subject: Impossible to run sbuild-update with LVM-based chroots
Date: Mon, 30 Aug 2010 12:18:56 +0200
Package: sbuild
Version: 0.60.0-2
Severity: normal

Hi,

I cannot make sbuild-update work with -source with my LVM snapshot schroots.

I have the following snippet in /etc/schroot/schroot.conf:

[sid]
type=lvm-snapshot
description=Debian sid snapshot
users=didier
groups=adm
root-groups=sudo
source-root-users=root,didier
aliases=unstable,default,unstable-amd64-sbuild,experimental-amd64-sbuild
lvm-snapshot-options=--size 10G
device=/dev/Icterus/schroot-sid-amd64
mount-options=-o noatime

And I can't run:

$ sbuild-update sid-source
Chroot for distribution sid-source, architecture amd64 not found

I don't understand what I am supposed to do to get this work.

TIA, OdyX

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

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sbuild depends on:
ii  adduser                       3.112      add and remove users and groups
ii  libsbuild-perl                0.60.0-2   Tool for building Debian binary pa
ii  perl                          5.10.1-14  Larry Wall's Practical Extraction 
ii  perl-modules                  5.10.1-14  Core Perl modules

Versions of packages sbuild recommends:
ii  debootstrap                   1.0.23     Bootstrap a basic Debian system
ii  fakeroot                      1.14.4-1   Gives a fake root environment

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

-- Configuration Files:
/etc/sbuild/sbuild.conf changed:
%individual_stalled_pkg_timeout = ('foomatic-db-engine' => 600);
1;


-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Mon, 30 Aug 2010 13:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Mon, 30 Aug 2010 13:39:03 GMT) (full text, mbox, link).


Message #50 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Didier Raboud <didier@raboud.com>, 434396@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#434396: Impossible to run sbuild-update with LVM-based chroots
Date: Mon, 30 Aug 2010 14:37:20 +0100
[Message part 1 (text/plain, inline)]
On Mon, Aug 30, 2010 at 12:18:56PM +0200, Didier Raboud wrote:
> I cannot make sbuild-update work with -source with my LVM snapshot schroots.
> 
> I have the following snippet in /etc/schroot/schroot.conf:
> $ sbuild-update sid-source
> Chroot for distribution sid-source, architecture amd64 not found
> 
> I don't understand what I am supposed to do to get this work.

If you're using schroot >= 1.4.8 in unstable, you'll need an
updated sbuild to work with source chroots;

http://git.debian.org/?p=buildd-tools/sbuild.git;a=commitdiff;h=3426a619aa9069bb88be72ea1c454acd9467c879

Hopefully, we'll get this updated version uploaded to unstable soon.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Sun, 07 Nov 2010 23:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sun, 07 Nov 2010 23:51:03 GMT) (full text, mbox, link).


Message #55 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Vincent Danjean <Vincent.Danjean@ens-lyon.org>, 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Sun, 7 Nov 2010 23:48:54 +0000
[Message part 1 (text/plain, inline)]
On Tue, Mar 10, 2009 at 01:29:19PM +0100, Vincent Danjean wrote:
> 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.

With sbuild 0.60.3 (just uploaded to unstable), sbuild should properly
understand source chroots [schroot >= 1.4.8 have namespaces, including
a 'source' namespace].  The various sbuild-* helpers now default to
using the source chroot for chroots which provide a source chroot.

Could you let me know if this fixes things for you?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Tue, 09 Nov 2010 10:22:30 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <Vincent.Danjean@ens-lyon.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 09 Nov 2010 10:22:30 GMT) (full text, mbox, link).


Message #60 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
To: Roger Leigh <rleigh@codelibre.net>
Cc: 434396@bugs.debian.org
Subject: Re: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 09 Nov 2010 11:19:18 +0100
  Hi,

On 08/11/2010 00:48, Roger Leigh wrote:
> With sbuild 0.60.3 (just uploaded to unstable), sbuild should properly
> understand source chroots [schroot >= 1.4.8 have namespaces, including
> a 'source' namespace].  The various sbuild-* helpers now default to
> using the source chroot for chroots which provide a source chroot.
> 
> Could you let me know if this fixes things for you?

I just upgraded my sbuild machine (from 0.59.0-1 to 0.60.3-1)
I had to comment deprecated config options (run-exec-scripts, ...)
to avoid too many output but all seems to work.

There is just one change which I do not known if this is a bug or a
feature: before the upgrade, I was running
"sbuild-update unstable-amd64-source". Now, I must run
"sbuild-update unstable-amd64" to update the *source* chroot.
  Is it the intended behavior (I will then fix my scripts) or is
it a bug (in this case, I will open a new bug report) ?

"schroot -c unstable-amd64-source" and "schroot -c unstable-amd64"
do the correct (expected) thing.

  Regards,
    Vincent

> 
> Thanks,
> Roger
> 


-- 
Vincent Danjean                 Adresse: Laboratoire d'Informatique de Grenoble
Téléphone:  +33 4 76 61 20 11            ENSIMAG - antenne de Montbonnot
Fax:        +33 4 76 61 20 99            ZIRST 51, avenue Jean Kuntzmann
Email: Vincent.Danjean@imag.fr           38330 Montbonnot Saint Martin




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Tue, 09 Nov 2010 11:03:09 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 09 Nov 2010 11:03:10 GMT) (full text, mbox, link).


Message #65 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Vincent Danjean <Vincent.Danjean@ens-lyon.org>, 434396@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#434396: [Buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 9 Nov 2010 11:00:15 +0000
[Message part 1 (text/plain, inline)]
On Tue, Nov 09, 2010 at 11:19:18AM +0100, Vincent Danjean wrote:
>   Hi,
> 
> On 08/11/2010 00:48, Roger Leigh wrote:
> > With sbuild 0.60.3 (just uploaded to unstable), sbuild should properly
> > understand source chroots [schroot >= 1.4.8 have namespaces, including
> > a 'source' namespace].  The various sbuild-* helpers now default to
> > using the source chroot for chroots which provide a source chroot.
> > 
> > Could you let me know if this fixes things for you?
> 
> I just upgraded my sbuild machine (from 0.59.0-1 to 0.60.3-1)
> I had to comment deprecated config options (run-exec-scripts, ...)
> to avoid too many output but all seems to work.
> 
> There is just one change which I do not known if this is a bug or a
> feature: before the upgrade, I was running
> "sbuild-update unstable-amd64-source". Now, I must run
> "sbuild-update unstable-amd64" to update the *source* chroot.
>   Is it the intended behavior (I will then fix my scripts) or is
> it a bug (in this case, I will open a new bug report) ?

Yes, this is intended.  It will automatically select the source chroot
for you.  Note that in new schroot releases, the chroot is actually
named "chroot:unstable-amd64" and the source chroot
"source:unstable-amd64".  The "-source" suffix is still avilable (as
an alias) for compatibility, but sbuild uses the new names.  Basically,
it's just prefixing the names with the appropriate namespace for you,
and for the sbuild-* commands, it defaults to using the source
namespace.  You do, however, have the option of using the complete
namespace-qualified name to use a specific chroot.

> "schroot -c unstable-amd64-source" and "schroot -c unstable-amd64"
> do the correct (expected) thing.

You should find that
"schroot -c source:unstable-amd64" and "schroot -c chroot:unstable-amd64"
are directly equivalent.  The -source suffix will be dropped post-squeeze
once all the tools are updated to use namespaces.  Note that the
namespaces are mostly optional--schroot will by default search in the
appropriate namespace for the action you want to perform.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Tue, 09 Nov 2010 12:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Danjean <Vincent.Danjean@ens-lyon.org>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 09 Nov 2010 12:27:04 GMT) (full text, mbox, link).


Message #70 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
To: Roger Leigh <rleigh@codelibre.net>
Cc: 434396@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 09 Nov 2010 13:22:30 +0100
  Hi,

On 09/11/2010 12:00, Roger Leigh wrote:
[lots of useful infos about chroot namespaces]

  Thanks for all these infos. Note that schroot.conf(5) still talk about
the -source suffix and not about the namespaces.

  For me, this bug can be closed.

  Regards,
    Vincent




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#434396; Package sbuild. (Tue, 09 Nov 2010 14:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 09 Nov 2010 14:03:07 GMT) (full text, mbox, link).


Message #75 received at 434396@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
Cc: 434396@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Tue, 9 Nov 2010 14:02:49 +0000
[Message part 1 (text/plain, inline)]
On Tue, Nov 09, 2010 at 01:22:30PM +0100, Vincent Danjean wrote:
> On 09/11/2010 12:00, Roger Leigh wrote:
> [lots of useful infos about chroot namespaces]
> 
>   Thanks for all these infos. Note that schroot.conf(5) still talk about
> the -source suffix and not about the namespaces.

Thanks, I'll make sure that documentation is updated, and also update the
sbuild docs.  I'll keep the bug open just for now to remind me to do this.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Roger Leigh <rleigh@codelibre.net>:
You have taken responsibility. (Mon, 30 May 2011 20:03:07 GMT) (full text, mbox, link).


Notification sent to Vincent Danjean <vdanjean@debian.org>:
Bug acknowledged by developer. (Mon, 30 May 2011 20:03:07 GMT) (full text, mbox, link).


Message #80 received at 434396-done@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
Cc: 434396-done@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#434396: Bug#434396: sbuild: LVM snapshot -source chroot not correctly managed
Date: Mon, 30 May 2011 20:58:09 +0100
[Message part 1 (text/plain, inline)]
Version: 1.4.8

On Tue, Nov 09, 2010 at 02:02:49PM +0000, Roger Leigh wrote:
> On Tue, Nov 09, 2010 at 01:22:30PM +0100, Vincent Danjean wrote:
> > On 09/11/2010 12:00, Roger Leigh wrote:
> > [lots of useful infos about chroot namespaces]
> > 
> >   Thanks for all these infos. Note that schroot.conf(5) still talk about
> > the -source suffix and not about the namespaces.
> 
> Thanks, I'll make sure that documentation is updated, and also update the
> sbuild docs.  I'll keep the bug open just for now to remind me to do this.

The schroot documentation is now updated, so I'll close the bug now.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

No longer marked as fixed in versions 1.4.8. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:41 GMT) (full text, mbox, link).


Marked as fixed in versions schroot/1.4.8. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:42 GMT) (full text, mbox, link).


No longer marked as found in versions sbuild/0.60.0-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:42 GMT) (full text, mbox, link).


No longer marked as found in versions sbuild/0.58.0-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:43 GMT) (full text, mbox, link).


No longer marked as found in versions sbuild/0.56. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:43 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 01 Dec 2013 07:45:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 23:40:43 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.