diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-02-23 15:26:49 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-02-27 11:43:36 +1100 |
commit | 7e0b9da2ae2f96d24c711c0ad4d12bb193ec49c0 (patch) | |
tree | 4d5848b0923038e3d0499c8d4f451ee50c70963f /test/parser/test-grub2-save-env.c | |
parent | d63bacef37d61b46e8db10914d4a7a677ba0775a (diff) | |
download | talos-petitboot-7e0b9da2ae2f96d24c711c0ad4d12bb193ec49c0.tar.gz talos-petitboot-7e0b9da2ae2f96d24c711c0ad4d12bb193ec49c0.zip |
discover/platform-powerpc: Avoid confusing gateway and URL
If we have a static network config with a URL set but not a gateway we
can confuse the URL as the gateway due to how we write the network
string in NVRAM.
To avoid changing the parameter format if we only have one of the two
tokens check whether or not it's actually a URL; the gateway and the URL
will have distinct formats.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/test-grub2-save-env.c')
0 files changed, 0 insertions, 0 deletions