mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Properly detect Arch Linux when lsb-release is available
This commit is contained in:
parent
fedaac365d
commit
cd3a2f2bc9
1 changed files with 3 additions and 0 deletions
|
@ -702,6 +702,9 @@ __gather_linux_system_info() {
|
|||
DISTRO_NAME="Oracle Linux"
|
||||
elif [ "${DISTRO_NAME}" = "AmazonAMI" ]; then
|
||||
DISTRO_NAME="Amazon Linux AMI"
|
||||
elif [ "${DISTRO_NAME}" = "Arch" ]; then
|
||||
DISTRO_NAME="Arch Linux"
|
||||
return
|
||||
fi
|
||||
rv=$(lsb_release -sr)
|
||||
[ "${rv}" != "" ] && DISTRO_VERSION=$(__parse_version_string "$rv")
|
||||
|
|
Loading…
Add table
Reference in a new issue