summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-04-19 21:10:44 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-04-23 05:16:48 +0300
commitb58da29169874ee20486f4a2a8dad98b9c3180af (patch)
tree7a9ea1856ce2e7a32da0fdbfaabfe47b7625836a
parent460b4386294fb8f54ba87a0091c994f045b16662 (diff)
downloadopenbmc-b58da29169874ee20486f4a2a8dad98b9c3180af.tar.xz
witherspoon: Use first-boot-set-mac
Use the new first-boot-set-mac recipe from the openpower layer for setting the mac address on first boot. This replaces obmc-mgr-inventory's sync_inventory_items.py script that achieves the same - but is the last remaining requirement for python on Witherspoon systems and first-boot-set-mac is shell! (From meta-ibm rev: 1249fea4137fcf0107a0ad77d78039ddf87c55d4) Tested-By: Built a witherspoon image and manually verified the root filesystem included a symlink to first-boot-set-mac@.service in /etc. Change-Id: If26c6e2337ec182951a2484a09a4843418716980 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-ibm/meta-witherspoon/recipes-phosphor/chassis/obmc-mgr-inventory%.bbappend24
-rw-r--r--meta-ibm/meta-witherspoon/recipes-phosphor/images/obmc-phosphor-image.bbappend2
-rw-r--r--meta-ibm/meta-witherspoon/recipes-phosphor/network/first-boot-set-mac_%.bbappend1
3 files changed, 2 insertions, 25 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/obmc-mgr-inventory%.bbappend b/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/obmc-mgr-inventory%.bbappend
deleted file mode 100644
index 0165929a6..000000000
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/chassis/obmc-mgr-inventory%.bbappend
+++ /dev/null
@@ -1,24 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-INSTANCES = "motherboard/uuid motherboard/bmc/ethernet"
-ITEMS_FMT = "system/chassis/{0}"
-
-ITEMS = "${@compose_list(d, 'ITEMS_FMT', 'INSTANCES')}"
-
-ENV_FILES = "obmc/sync_inventory_item/{0}"
-SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENV_FILES', 'ITEMS')}"
-
-TMPL = "obmc-sync-inventory-item@.service"
-TGT = "multi-user.target"
-
-ETH_SVC = "system-chassis-motherboard-bmc-ethernet.service"
-UUID_SVC = "system-chassis-motherboard-uuid.service"
-
-ETH_DROPIN_DIR = "obmc-sync-inventory-item@${ETH_SVC}.d"
-UUID_DROPIN_DIR = "obmc-sync-inventory-item@${UUID_SVC}.d"
-
-SYSTEMD_OVERRIDE_${PN} += "mac_sync_inventory.conf:${ETH_DROPIN_DIR}/mac_sync_inventory.conf"
-SYSTEMD_OVERRIDE_${PN} += "uuid_sync_inventory.conf:${UUID_DROPIN_DIR}/uuid_sync_inventory.conf"
-
-SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${ETH_SVC}"
-SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${UUID_SVC}"
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/images/obmc-phosphor-image.bbappend b/meta-ibm/meta-witherspoon/recipes-phosphor/images/obmc-phosphor-image.bbappend
index bea352f7d..aa7e786c0 100644
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/images/obmc-phosphor-image.bbappend
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/images/obmc-phosphor-image.bbappend
@@ -1 +1 @@
-OBMC_IMAGE_EXTRA_INSTALL_append = " mboxd max31785-msl phosphor-msl-verify liberation-fonts uart-render-controller"
+OBMC_IMAGE_EXTRA_INSTALL_append = " mboxd max31785-msl phosphor-msl-verify liberation-fonts uart-render-controller first-boot-set-mac"
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/network/first-boot-set-mac_%.bbappend b/meta-ibm/meta-witherspoon/recipes-phosphor/network/first-boot-set-mac_%.bbappend
new file mode 100644
index 000000000..29d23c8c4
--- /dev/null
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/network/first-boot-set-mac_%.bbappend
@@ -0,0 +1 @@
+SYSTEMD_SERVICE_${PN} += "first-boot-set-mac@eth0.service"