[Dextrose] Display not occurring on a "osuilder" dx2-xo1 build

Anish Mangal anish at sugarlabs.org
Sat Nov 5 01:06:06 EDT 2011


On Sat 05 Nov 2011 05:48:03 AM IST, Bernie Innocenti wrote:
> On Sat, 2011-11-05 at 05:38 +0530, Ajay Garg wrote:
>> Yup, one thing.
>>
>> In the section "Creating a build", running
>>
>> sudo ./osbuilder.py examples/dextrose2-xo1.ini 
>>
>> would begin (as "sudo" was configured for my user-name); however, it
>> would break in the later stage, with the error message "chroot command
>> not found"..
>>
>> The solution (courtesy Anish), is to login as root (using sudo su -) ,
>> and then re-begin the operation. (I might not be able to update this,
>> as I don't have write access on the wiki).
>
> Thanks. Maybe we should hunt for the place where chroot is being invoked
> without its full path. Alternatively, we could prepend /sbin
> and /usr/sbin to the system path at the beginning.
>

The exact piece of code in question is:

chroot $fsmount python -m compileall /usr/lib /usr/share > /dev/null

and the place:

modules/base/preimage.90.core.sh

It would probably be cleaner to add chroot to path. I believe Martin 
Langhoff fixed this in OOB a few months ago, so it could just be a 
matter of cherry-picking a commit.

-- 
Anish Mangal
Sugar Labs


More information about the Dextrose mailing list