Your message dated Mon, 30 May 2011 20:58:09 +0100
with message-id <[email protected]>
and subject line Re: [buildd-tools-devel] Bug#434396: Bug#434396: sbuild: LVM
snapshot -source chroot not correctly managed
has caused the Debian Bug report #434396,
regarding sbuild: LVM snapshot -source chroot not correctly managed
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
434396: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434396
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
Description: Digital signature
--- End Message ---