BUG report: installer get_os() function unreliable

The Ubuntu 18.04 image maintained by our IT doesn’t not include /etc/apt/sources.list file, which is used by the installer for checking OS type. As the result, the installer reports my OS as UNKNOWN OS.

/etc/apt/sources.list is part of standard Ubuntu 18.04 server installation, and our installer relies on it. The fact that it does not work with a non-standard installation is not a bug in my opinion.

That is a fair argument. However I would think using a command like lsb_release would be more reliable, which most of scripts I have seen are using for checking OS.

In any case users should be provided an option to overwrite the OS type if the installer fails to do so. Just my 2 cents.

1 Like

And these are fair arguments too. I will bring lsb_release option up with the dev team. Although I am a bit concerned that lsb_release is not provided out of the box (e.g. not on CentOS).

Thanks @SzilardTG!

Well I assume you can roll lsb_release into the dependencies install script just like sshpass :slight_smile: