[buildd-tools-devel] Bug#779180: Bug#779180: Bug#779180: Honor chroot personality in setup (service) scripts

Roger Leigh rleigh at codelibre.net
Sat Apr 18 12:46:55 UTC 2015


On Thu, Apr 16, 2015 at 01:15:06AM +0200, Jan-Marek Glogowski wrote:
> Hi Roger,
> 
> Am 15.04.2015 um 00:25 schrieb Roger Leigh:
> > On Wed, Feb 25, 2015 at 09:42:59AM +0100, Jan-Marek Glogowski wrote:
> >> schroot allows to set a Linux personality for chroots, e.g. to run a
> >> 32bit chroot on a 64bit system. And there is a schroot setup script to
> >> start services when entering the schroot. But these service setup script
> >> ignores the personality; that's my problem.
> > 
> > Sorry for the delay, I just wanted to let you know that I do appreciate
> > you doing this work and that I have looked over your patches.  I've
> > unfortunately not had time to test it and commit it, due to a
> > combination of work deadlines and RSI still preventing me doing as
> > much typing as I would like.  I hope that the work side of things will
> > improve towards the end of the month.
> 
> Have you thought about the more general approach to include the chroot
> call in the helper?
> 
> The patch currently does:
> 
> -  chroot "$CHROOT_PATH" /usr/sbin/invoke-rc.d ...
> +  "$LIBEXEC_DIR"/schroot-impersonate -- $(which chroot) "$CHROOT_PATH"
> /usr/sbin/invoke-rc.d ...
> 
> Would be nice to get this down to something like:
> 
>   "$LIBEXEC_DIR"/schroot-run /usr/sbin/invoke-rc.d ...

Definitely makes sense.

I was thinking about the possibility of moving the logic from
schroot's session exec function here and then execing this
helper from schroot as well.  The main concern would be passing
the session details in the environment or with appropriate
command-line options before running the command.  It would
probably make sense to call it schroot-exec in that case!

That level of support doesn't need to be done now though; it
could be updated/renamed later.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Buildd-tools-devel mailing list