diff options
author | Yuxiao Zhang <yuxiaozhang@google.com> | 2023-08-01 20:48:25 +0300 |
---|---|---|
committer | Yuxiao Zhang <yuxiaozhang@google.com> | 2023-08-02 05:38:14 +0300 |
commit | b4c7c74204c2a60a37e9edb14c9d9c02c771e2a2 (patch) | |
tree | 75b9ba4a74e1bdec7c49decc1d542803ba953a35 | |
parent | 8b167cd73a0a02102cd3ac64866e1a6e93356d8f (diff) | |
download | openbmc-b4c7c74204c2a60a37e9edb14c9d9c02c771e2a2.tar.xz |
meta-google: networking: Prevent redundant dhcp reconfig during installation
We have seen that smartnic workaround is running after dhcp done.
If we see dhcp-done service running, no need to restart dhcp.
Change-Id: I83ad8bc376f6727ec98a4ce4b2e545d00a2b9c82
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
-rw-r--r-- | meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp.service b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp.service index 8a5c711ac5..60ea0fb9ea 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp.service +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp.service @@ -7,6 +7,7 @@ StartLimitBurst=3 [Service] Restart=on-failure RestartSec=5 +ExecCondition=/bin/bash -c "! /bin/systemctl is-active -q dhcp-done@*" ExecStart=/usr/bin/udhcpc6 -f -q -O fqdn -O bootfile_url -O bootfile_param -i gbmcbr -s /usr/libexec/gbmc-br-dhcp.sh [Install] |