diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2022-04-19 17:24:29 +0300 |
---|---|---|
committer | Naresh Solanki <naresh.solanki@9elements.com> | 2023-08-10 13:36:10 +0300 |
commit | 1ce49267e7223181232f2fdba4373444dbae0be9 (patch) | |
tree | 2ee7ba923433a99318a5b8ad1b2e418d8b628fd4 | |
parent | 891229d64fa3fa2504d518dc1894178ccfa74ce3 (diff) | |
download | openbmc-1ce49267e7223181232f2fdba4373444dbae0be9.tar.xz |
meta-ibm: systemd-networkd-wait-online override
IBM systems do not always configure both eth0 and eth1 ports. This
causes this service to fail and hold up the boot of the BMC by the 2
minute timeout.
Override this service file to have IBM systems only wait for eth0 OR
eth1 to become active.
The SBP1 BMC has two NICs. Be happy with a link up on one of them.
TEST=Build for SBP1 & make sure with waits for either of the two
NIC to be active.
Change-Id: I2ed633805f7e71021c010b9bc53e076f2c55732e
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
-rw-r--r-- | meta-ibm/recipes-core/systemd/systemd_%.bbappend | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-ibm/recipes-core/systemd/systemd_%.bbappend b/meta-ibm/recipes-core/systemd/systemd_%.bbappend index b412b88d31..b578b8ffc2 100644 --- a/meta-ibm/recipes-core/systemd/systemd_%.bbappend +++ b/meta-ibm/recipes-core/systemd/systemd_%.bbappend @@ -10,6 +10,7 @@ SRC_URI:append:p10bmc = " file://vm.conf" SRC_URI:append:p10bmc = " file://network.conf" SRC_URI:append:genesis3 = " file://systemd-networkd-only-wait-for-one.conf" +SRC_URI:append:sbp1 = " file://systemd-networkd-only-wait-for-one.conf" FILES:${PN}:append:ibm-ac-server = " ${systemd_unitdir}/journald.conf.d/journald-storage-policy.conf" FILES:${PN}:append:ibm-ac-server = " ${systemd_system_unitdir}/systemd-journald.service.d/systemd-journald-override.conf" @@ -22,6 +23,7 @@ FILES:${PN}:append:p10bmc = " ${sysconfdir}/sysctl.d/vm.conf" FILES:${PN}:append:p10bmc = " ${sysconfdir}/sysctl.d/network.conf" FILES:${PN}:append:genesis3 = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-networkd-only-wait-for-one.conf" +FILES:${PN}:append:sbp1 = " ${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-networkd-only-wait-for-one.conf" do_install:append:ibm-ac-server() { install -m 644 -D ${WORKDIR}/journald-storage-policy.conf ${D}${systemd_unitdir}/journald.conf.d/journald-storage-policy.conf @@ -36,11 +38,15 @@ do_install:append:p10bmc() { install -m 644 -D ${WORKDIR}/network.conf ${D}${sysconfdir}/sysctl.d/network.conf } -# Genesis3 uses both BMC's RGMII MACs, so wait for only one to be online +# Genesis3 and SBP1 uses both BMC's RGMII MACs, so wait for only one to be online do_install:append:genesis3() { install -d ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/ install -m 644 -D ${WORKDIR}/systemd-networkd-only-wait-for-one.conf ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-networkd-only-wait-for-one.conf } +do_install:append:sbp1() { + install -d ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/ + install -m 644 -D ${WORKDIR}/systemd-networkd-only-wait-for-one.conf ${D}${systemd_system_unitdir}/systemd-networkd-wait-online.service.d/systemd-networkd-only-wait-for-one.conf +} # Witherspoon doesn't have the space for the both zstd and xz compression # libraries and currently phosphor-debug-collector is using xz. Switch systemd # to use xz so only one of the two is added into the image. |