[buildd-tools-devel] Bug#572034: Bug#572034: schroot: in file mode, installed files are not added back to the archive

Roger Leigh rleigh at codelibre.net
Mon Mar 1 13:41:21 UTC 2010


On Mon, Mar 01, 2010 at 12:48:51PM +0530, Ritesh Raj Sarraf wrote:
> I have an schroot environment for Lenny based on file mode.
> 
> [lenny]
> type=file
> description=Debian Lenny
> #directory=/var/tmp/chroot
> file=/var/tmp/chroot/lenny.tar.gz
> priority=2
> groups=root,rrs-lenny
> users=rrs-lenny
> aliases=lenny,default
> run-setup-scripts=true
> 
> 
> I chroot into it and install a bunch of applications. When I exit the
> environment, the changes that were done are all lost.
> Shouldn't they be retained ?
> 
> This expected behavior is present with directory mode.

The difference with type=file is that it's a clonable type; unlike
type=directory, you don't use it directly: you need to unpack it,
making a copy.  If you use the lenny-source chroot, the modified
chroot will be re-packed back into the tar.bz when you exit.  If you
look at the manual pages, they explain about "source chroots" and
how they work.


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100301/0e950701/attachment.pgp>


More information about the Buildd-tools-devel mailing list