<br><br><div class="gmail_quote">On Wed, May 2, 2012 at 10:52 AM, Daniel Drake <span dir="ltr"><<a href="mailto:dsd@laptop.org" target="_blank">dsd@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, May 1, 2012 at 4:49 PM, John Gilmore <<a href="mailto:gnu@toad.com">gnu@toad.com</a>> wrote:<br>
>> Currently, XO hostnames are set on first boot in the following format:<br>
>> xo-A-B-C<br>
>> Where A, B and C are the last 3 bytes of the MAC address expressed in hex.<br>
>><br>
>> In Nicaragua we are seeing cases where XOs have no hostname set, both<br>
>> on XO-1 and XO-1.5. On XO-1 this is presumably because libertas<br>
>> usb8388 init was never 100% reliable, and on XO-1.5 its presumably<br>
>> because the wireless card was DOA but was replaced after first boot.<br>
><br>
> Why would we need to get it from the wireless card?  Isn't the<br>
> laptop's MAC address stored in the manufacturing data in motherboard<br>
> flash?<br>
<br>
Good point.<br></blockquote><div><br>I believe I've seen cases where the mfg data doesnt match the actual real MAC address.  If memory serves, it's on the older 1.5's, presumably where the wireless module had been swapped out.  If that is the case, it might not matter, since the use case is that the old module was probably trashed and so the mfg data is still as unique as it needs to be.  Also, I'm at work and don't have the old 1.5's in front of me  right now, so I could be mistaken and the mfg data does get auto-magically updated when the module is switched.  If so, sorry for the noise. <br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
>> I propose we move to generating hostnames in the same format as before<br>
>> (xo-A-B-C), but with A, B and C assigned as random hex digits on first<br>
>> boot.<br>
>> (If people are worried about collisions, maybe we add a D digit.)<br>
><br>
> Existing hostnames have three bytes of info (e.g. xo-12-3a-49).<br>
> Particularly if you're going to generate them at random rather than<br>
> by prior assignment like MACs, why reduce the amount of unique<br>
> information (e.g. xo-1-a-4 or xo-1-a-4-d)?  Producing three random<br>
> bytes of info for the hostname, rather than 1.5 or 2 bytes, would<br>
> reduce the chance of collisions; and has the advantage of not<br>
> changing either the size or format of the hostnames, in case<br>
> anything else is depending on it.<br>
<br>
You're right. When I wrote "hex digits" I actually meant to write "hex<br>
bytes". i.e. I was not suggesting that we reduce the amount of data,<br>
only change where it comes from.<br>
<br>
Daniel<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</blockquote></div><br>