OpenSUSE detected as Ubuntu/Debian in bootstrap.sh
Created by: krrg
Reproduction: Attempt to run the bootstrap.sh script on an OpenSUSE 42.3 installation.
Expected behavior: Should detect as a SUSE-based installation and run the suse() function.
Actual behavior:
Instead, detects as a Debian/Ubuntu system and uses apt-get
. Some package names are incorrect, however.
The zypper-aptitude
plugin is evidently installed by default on OpenSUSE 42.3. This plugin provides an apt-get
command that functions very similarly to the Debian apt-get
. This causes the bootstrapping script to mistake a SUSE installation for a Debian installation. The installation will fail because OpenSUSE is unable to find some of the specific packages called for (such as build-essential
).
A potential fix for this would be to change the order of the checks; check if zypper
is present first, and only if it is not, check for apt-get
. PR forthcoming.