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
)
This commit is contained in:
parent
41d9f8a3b7
commit
eb9faedad5
|
@ -137,7 +137,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…
Reference in New Issue