OpenNebula / addon-context-linux

Linux VM Contextualization
Apache License 2.0
56 stars 73 forks source link

OpenNebula/addon-context-linux#286: Rework OS detection for unsupport… #292

Closed dann1 closed 1 year ago

dann1 commented 1 year ago

A bug was introduced with #286. Although the os_detect function was only used once, the variable using the output was used multiple times and the network config breaks on some distros because of the new variable format.

image

It went from being "${variable}" to "${variable1} ${variable2}" which is checked in several other functions other than the one that sets the NETCFG_TYPE, which was the only one updated.

The change now keeps the old format and uses the alternative detection ID_LIKE if the ID is not among the supported ones.