[PATCH] Adding the olpc-register script to olpc-util

Dan Williams dcbw at redhat.com
Tue Jul 31 22:32:35 EDT 2007


On Mon, 2007-07-30 at 14:08 -0400, Nelson Elhage wrote:
> Here's a fixed version of the patch.

Built as:

http://koji.fedoraproject.org/koji/taskinfo?taskID=84355

dan

> - Nelson
> 
> On Mon, Jul 30, 2007 at 08:03:00AM -0400, Dan Williams wrote:
> > On Sat, 2007-07-28 at 11:43 -0400, C. Scott Ananian wrote:
> > > On 7/27/07, Nelson Elhage <nelhage at mit.edu> wrote:
> > > > This is a patch to olpc-util to add a script to register the XO with
> > > > the schoolserver for purposes of backup for trial 2
> > > > (http://dev.laptop.org/ticket/24).
> > > 
> > > > +    sn = read_ofw('mfg-data/SN')
> > > > +    uuid = read_ofw('mfg-data/U#')
> > > 
> > > Certain old machines don't have SN or U# data.  You should have
> > > read_ofw return None if the file it is looking for doesn't exist, and
> > > then follow the above two lines with:
> > > 
> > > sn = sn or 'SHF00000000'
> > > uuid = uuid or '00000000-0000-0000-0000-000000000000'
> > > 
> > > That should make things work properly on B1s and hand-built
> > > preproduction machines, among others.
> > > 
> > > We should think about how we handle a classroom full on B1s (which
> > > have no SN data) on the school server side.  B1s do have UUID, so
> > > maybe we should create the schoolserver account based on the first 8
> > > characters of the UUID in this case.  This shouldn't make a difference
> > > to the XO code, since the XO ought to take whatever account name the
> > > schoolserver gives it.
> > > 
> > > I don't believe I have the bits to commit a patch to olpc-util.  Could
> > > someone who does (danw? dcbw?) commit this and then ping me to let me
> > > know it's in?
> > 
> > We should probably do the fixes for B1s first...
> > 
> > I also apparently didn't get the first copy of this mail, not sure where
> > it went...
> > 
> > Dan
> > 
> > 




More information about the Devel mailing list