summaryrefslogtreecommitdiff
path: root/meta-ibm
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2023-04-05 18:48:14 +0300
committerAdriana Kobylak <anoo@linux.ibm.com>2023-04-06 23:08:31 +0300
commitd48f66724a212f26105dcc1d2dfa3aad40ccb681 (patch)
treeef844fb6ae16b07090e37cdb8db810a6171a656a /meta-ibm
parentbc022c04f615570566895f0bc76e89d77d3a02cd (diff)
downloadopenbmc-d48f66724a212f26105dcc1d2dfa3aad40ccb681.tar.xz
meta-ibm:ncsi-linkspeed: ensure eth device present
IBM is building a system under the "p10bmc" bitbake machine that only has a single ethernet port, eth0, wired up on it. The system is still utilizing an AST2600, but only wired eth0 out of the system for cost purposes. Since the "p10bmc" machine is a shared target there is no way to remove services that assume eth1 is present during the build process. Instead, rely on the fact that the device will be present in /sys/class/net/ if in fact the system supports the network device. Tested: - Verified that a p10bmc Rainier machine with 2 eth ports still ran this script for both ports - Verified that a p10bmc Bonnell machine with only eth0 ran this script for eth0 but not eth1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ic5dfe4bc772fb4de5eb28f3035cf9952d4bbcb7a
Diffstat (limited to 'meta-ibm')
-rw-r--r--meta-ibm/recipes-phosphor/network/network/ncsi-linkspeed@.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/network/network/ncsi-linkspeed@.service b/meta-ibm/recipes-phosphor/network/network/ncsi-linkspeed@.service
index 26737b9735..dbc78416a7 100644
--- a/meta-ibm/recipes-phosphor/network/network/ncsi-linkspeed@.service
+++ b/meta-ibm/recipes-phosphor/network/network/ncsi-linkspeed@.service
@@ -1,6 +1,7 @@
[Unit]
Description=Set %i gigabit link speed
After=network.target
+ConditionPathExists=/sys/class/net/%i
[Service]
TimeoutSec=90s