diff options
author | William A. Kennington III <wak@google.com> | 2024-03-22 12:41:25 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2024-03-26 00:37:26 +0300 |
commit | b10726a7051ba27ff45bd4c16aacb5bb42c03b5e (patch) | |
tree | 0f5ac2d67ccb2a03f7fedaf0206b505bf35e1ff5 /meta-google | |
parent | 98da9efd2b44c1d434b872aae9a50f1f7087749b (diff) | |
download | openbmc-b10726a7051ba27ff45bd4c16aacb5bb42c03b5e.tar.xz |
meta-google: gbmc-ncsi-config: Fix migrated files
The output files did not have their [Match] expression rewritten. This
effectively made them incorrect and broken for the interface they were
supposed to match.
Tested: Ran on a server with migration enabled and verified the contents
of the files and ensured settings got applied correctly.
Change-Id: Ief34a100f6dd1361f33a02ae2f4ea81be12c5ea7
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google')
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-old.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-old.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-old.service.in index dceeea1d3b..90ce5e336a 100644 --- a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-old.service.in +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-old.service.in @@ -4,7 +4,8 @@ ConditionFileNotEmpty=/etc/systemd/network/00-bmc-@OLD_IF@.network [Service] Type=oneshot -ExecStart=mv -v /etc/systemd/network/00-bmc-@OLD_IF@.network /etc/systemd/network/00-bmc-@NCSI_IF@.network +ExecStart=bash -c "sed 's,Name=@OLD_IF@,Name=@NCSI_IF@,' /etc/systemd/network/00-bmc-@OLD_IF@.network >/etc/systemd/network/00-bmc-@NCSI_IF@.network" +ExecStart=rm -v /etc/systemd/network/00-bmc-@OLD_IF@.network [Install] WantedBy=multi-user.target |