[pkg-lxc-devel] [buildd-tools-devel] using schroot under lxc.
Johannes Schauer
josch at debian.org
Mon Jun 26 16:35:38 UTC 2017
Hi,
sbuild maintainer here.
Quoting Peter Green (2017-06-26 01:19:14)
> First I had to enable the "nesting" option in the container configs, fair
> enough.
>
> Secondly I had to disable the "mount --make-private" in
> /etc/schroot/setup.d/10mount , it gave errors something about mounting
> read only followed by "can't mount none read only" or something like
> that (sorry giving errors from memory).
>
> Finally on stretch only I had to rebuild sbuild with
> "schroot-mount-make-bind-mounts-private.patch" backed out.
You mean you had to rebuild schroot, not sbuild, right? That patch is part of
the schroot source package.
> Any thoughts on how this user experiance can be improved? It would be nice if
> sbuild could be used under lxc out of the box or at least could be made to
> work without having to rebuild the lxc package.
This seems to be a schroot issue for which Roger Leigh is the best person to
talk to.
As for the sbuild part, maybe you want to try a different chroot backend? If
you can run a nested lxc, then you could try running sbuild like this:
sbuild --chroot-mode=autopkgtest --autopkgtest-virt-server=lxc \
--autopkgtest-virt-server-opts="lxc-container [-- extra lxc-start args...]"
I'm personally not very familiar with lxc which is why I would like to get
feedback about using sbuild with the autopkgtest-virt-lxc backend.
Thanks!
cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20170626/af5c755c/attachment.sig>
More information about the Pkg-lxc-devel
mailing list