commit | b4c7c74204c2a60a37e9edb14c9d9c02c771e2a2 | [log] [tgz] |
---|---|---|
author | Yuxiao Zhang <yuxiaozhang@google.com> | Tue Aug 01 10:48:25 2023 -0700 |
committer | Yuxiao Zhang <yuxiaozhang@google.com> | Wed Aug 02 02:38:14 2023 +0000 |
tree | 75b9ba4a74e1bdec7c49decc1d542803ba953a35 | |
parent | 8b167cd73a0a02102cd3ac64866e1a6e93356d8f [diff] |
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>
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 8a5c711..60ea0fb 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 @@ [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]