<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" ><div>Hi Milton,</div>
<div><br>Do you have any idea why we need to write UUID to U-boot environment ?</div></div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<div dir="ltr" >Best Regards,<br>Nagaraju G</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Nagaraju Goruganti" <ngorugan@in.ibm.com><br>Sent by: "openbmc" <openbmc-bounces+ngorugan=in.ibm.com@lists.ozlabs.org><br>To: openbmc@lists.ozlabs.org<br>Cc:<br>Subject: Utility to Sync BMC's UUID to U-Boot environment<br>Date: Fri, Nov 30, 2018 11:49 AM<br> <br><span style=" font-size:11pt;font-family:sans-serif" >Hi All,</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >We are planning to port UUID synching related code from current python script: <b>openbmc/skeleton/pyinventorymgr/sync_inventory_items.py</b>to new bash script.</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >The current py(invoked by systemd on the way to BMC ready state) is doing below given actions to sync BMC's UUID to U-Boot environment.</span><br><span style=" font-size:11pt;font-family:sans-serif" >1. Getting the UUID from inventory.</span><br><span style=" font-size:11pt;font-family:sans-serif" >2. Getting the UUID from U-boot environment</span><br><span style=" font-size:11pt;font-family:sans-serif" >3. If the both are differing, write the UUID form inventory to U-Boot environment.</span><br><span style=" font-size:11pt;font-family:sans-serif" >4. It also it has TODO task to reboot the BMC to make sure UUID from U-Boot env to sync with /etc/machine-id.</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >But this script is in broken state now: It is not updating UUID in U-boot env by reading it from inventory.</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >We have few things to understand here:</span><br><span style=" font-size:11pt;font-family:sans-serif" >1. Is there a need to write UUID to U-Boot environment?</span><br><span style=" font-size:11pt;font-family:sans-serif" >2. Can machine-id be the source for UUID? or UUID is the source for machine-id?</span><br><span style=" font-size:11pt;font-family:sans-serif" >3. If UUID (from inventory) is the source for machine-id, from where should the inventory get UUID? (on openpower systems the UUID is fetched from BMC VPD, if present)</span><br><span style=" font-size:11pt;font-family:sans-serif" >4. If machine-id is the source to UUID, how machine-id is getting its value?</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >We need an inputs from community members who are having better understand on these things.</span><br><br><span style=" font-size:11pt;font-family:sans-serif" >Best Regards,</span><br><span style=" font-size:11pt;font-family:sans-serif" >Nagaraju G</span></blockquote>
<div dir="ltr" > </div></div><BR>