Bug#395062: [Buildd-tools-devel] Bug#395062: add additional bind
mount points to chroot
Roger Leigh
rleigh at whinlatter.ukfsn.org
Sat Oct 28 00:29:17 CEST 2006
Kees Cook <kees at outflux.net> writes:
> When using schroot, I have a need to bind additional mount points into
> the chroot (for example, I use /scratch for builds, since my /home mount
> is on NFS). Hopefully my solution for this is appropriate.
>
> The attached patch adds the schroot.conf key "mount-extra", which the
> setup/10mount script uses as a colon-separates list of additional bind
> mounts.
Thanks for proposing this. schroot (1.0) is currently frozen for
etch, but changes can go into the trunk.
I would very much like to allow easier customisation of the setup and
session scripts, but I would also like to keep the configuration file
as clean and simple as possible: I don't want to add a new
configuration option for every tweakable aspect of the scripts,
because I'd like to keep it /user/ extensible. There are quite a
number of other things that people want to customise, so I'd prefer to
take a more general approach here.
An alternative approach I've been considering is to source a shell
script at the start of each setup script which would simply set a few
shell variables in the form
FOO="bar"
which could then be used by any of the scripts. The configuration to
use could then be specified by a single configuration file option,
such as
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?
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/20061027/279149b8/attachment-0001.pgp
More information about the Buildd-tools-devel
mailing list