[Buildd-tools-devel] Bug#427047: Bug#395062: Bug#395062: add additional bind mount points to chroot

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Jul 8 10:21:24 UTC 2007


Kees Cook <kees at outflux.net> writes:

> On Fri, Oct 27, 2006 at 11:29:17PM +0100, Roger Leigh wrote:
>>   setup-script-config=/etc/schroot/custom-config
>> 
>> This could be unique to one chroot, or could be shared by different
>> chroots.  As it would be a shell script, it can be easily adapted by
>> users who want to allow customisation of their own setup scripts.
>> 
>> Does this sound OK?
>
> I think it could be made to work.  I wanted to use the "mount" shell 
> functions to do the work.  Perhaps take my changes to the 10mount 
> script, and then if CHROOT_MOUNT_EXTRA is defined in the 
> 'setup-script-config', it would do the right things as far as mounting?
>
> I love the idea of making easier to customize, but I want to make sure I 
> can still get into the 10mount script easily.  :)

I have now committed this into SVN.  There is an additional
script-config configuration option to specify a shell script under
/etc/schroot.  All the setup scripts now source this script, and so
now it will be possible to modify all the scripts to add customisation
hooks.

This is all in upstream SVN at
  svn://svn.debian.org/svn/buildd-tools/trunk/schroot

Now this is in place, things like the fstab file suggested by Peter
for #427047 may be added in to the script config file.

#395062 could be solved either by adding a list of mounts to the
config file (replacing the current hardcoded list), or alternatively
if could use the fstab arrangement proposed in #427047.  Since these
two bug reports have similar solutions, I'm sure we can work something
that will work for everyone.


Any comments?


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: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20070708/804f6957/attachment-0003.pgp 


More information about the Buildd-tools-devel mailing list