[buildd-tools-devel] [RfC] Honor chroot personality in setup service script

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Thu Feb 5 17:31:19 UTC 2015


On Thu, Feb 05, 2015 at 04:46:45PM +0100, Jan-Marek Glogowski wrote:
> All the setup.d scripts run "outside" of the chroot without the schroots
> personality set (for mounts, nss copy etc.). The personality is just set
> before executing the final chroot command - be it /bin/bash or whatever
> you specify.
> 
> Calling "linux32 schroot" is not really a workaround. There is a reason
> to specify the personality inside the config file, so people don't have
> to remember it.
> 
> Probably all setup schripts should run with the correct personality when
> calling a command inside the chroot, so we should actually wrap the
> system chroot command?
> 
> > personality=linux32 in the schroot config should do that for you.
> > 
> > Certainly that works for me, and nothing has ever thought it was on a
> > 64bit system inside the chroot with that setting.
> 
> This just works for the final command inside the chroot, not the setup
> scripts.

So what does your setup script do that would break?  I would have hoped
that running icecc would be the final command to be run in the chroot.

But interesting that there are cases where the setup even needs to know.

-- 
Len Sorensen



More information about the Buildd-tools-devel mailing list