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

Jan-Marek Glogowski glogow at fbihome.de
Wed Apr 15 23:15:06 UTC 2015


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 ...

Regards,
Jan-Marek

P.S. just as an other data point from an other tool: FAI sets the env
ROOTCMD="chroot /tmp/target" for its scripts, so the script aren't that
clobbered with long chroot calls...
P.P.S. I'm currently on holiday until July, so no need to hurry.



More information about the Buildd-tools-devel mailing list