Browse Source

Fix sed in run-os-net-config to only replace values, not keys

The sed in run-os-net-config.sh replaces all instances of bridge_name
but it should only replace values, not keys.

Change-Id: Iaf19e1550bd7a5286b8512596efd84cf14c78f32
Closes-bug: #1854780
(cherry picked from commit 858cc6c54f)
changes/83/697083/1
Nate Johnston 1 month ago
parent
commit
29d8b9364e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      network/scripts/run-os-net-config.sh

+ 1
- 1
network/scripts/run-os-net-config.sh View File

@@ -129,7 +129,7 @@ if [ -n '$network_config' ]; then
network_config_hook
fi

sed -i "s/bridge_name/${bridge_name:-''}/" /etc/os-net-config/config.json
sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json
sed -i "s/interface_name/${interface_name:-''}/" /etc/os-net-config/config.json

set +e

Loading…
Cancel
Save