diff options
author | asmithakarun <asmithkr@in.ibm.com> | 2019-06-26 10:04:53 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-08-28 15:07:55 +0300 |
commit | 173965e73ed4d3712aa5eec2c688d2b8e25a98c5 (patch) | |
tree | 0ea07b154268bf362297eb9f9b7a9cee84b3a3b4 /meta-phosphor/raspberrypi | |
parent | adb0b75f0ff8e9510d6e38e5bbb5148b08c48d48 (diff) | |
download | openbmc-173965e73ed4d3712aa5eec2c688d2b8e25a98c5.tar.xz |
meta-openpower: avahi: Append MAC address to the hostname
The idea of this commit is to handle situations where the
serial number is not written into bmc-vpd. In such cases,
the MAC address will be appended with the hostname to make
the hostname unique.
Tested By:
1. When BMC Serial Number is present:
Output:
root@witherspoon-YL10UF78A0H4:~# hostname
witherspoon-YL10UF78A0H4
2. In the absence of BMC Serial Number, MAC Address is appended:
Output:
root@witherspoon:/# hostname
witherspoon
After enabling first-boot-set-hostname.service and reboot,
root@witherspoon-70e284143365:/# hostname
witherspoon-70e284143365
3. When Inventory interface is not found:
Output:
Exits with error: "No Ethernet interface found in the Inventory. Unique hostname not set!"
Hostname will not be set. It remains the same.
(From meta-openpower rev: d9e4700f7a09894fdd17b2fe97e51cf88135c585)
Signed-off-by: asmithakarun <asmithkr@in.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: Ia753e9797ee1627bf3ddd2edbb7ceed81fccad12
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/raspberrypi')
0 files changed, 0 insertions, 0 deletions