-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers/linux/os.go - Get OS info from Manjaro Linux (#183)
Manjaro was not working as expected because the `DISTRIB_RELEASE` value was never used to get the OS version. There was no OS distribution family for "arch". So this maps Majaro as part of the "arch" family along with Arch Linux itself and Antergos. Added an additional fallback to use the `ID_LIKE` field in `os-release` to determine the OS distribution family. I replaced the deprecated `io/ioutil` with the `os` package. Fixes #168
- Loading branch information
1 parent
7185883
commit 9ea2eba
Showing
10 changed files
with
120 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```release-note:enhancement | ||
linux: Added an `os.Family` mapping for Arch Linux based distributions. | ||
``` | ||
|
||
```release-note:bug | ||
linux: Fix OS metadata collection for Manjaro Linux. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../usr/lib/os-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
NAME="Arch Linux ARM" | ||
PRETTY_NAME="Arch Linux ARM" | ||
ID=archarm | ||
ID_LIKE=arch | ||
BUILD_ID=rolling | ||
ANSI_COLOR="38;2;23;147;209" | ||
HOME_URL="https://archlinuxarm.org/" | ||
DOCUMENTATION_URL="https://archlinuxarm.org/wiki" | ||
SUPPORT_URL="https://archlinuxarm.org/forum" | ||
BUG_REPORT_URL="https://github.com/archlinuxarm/PKGBUILDs/issues" | ||
LOGO=archlinux-logo |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DISTRIB_ID=Manjaro-ARM | ||
DISTRIB_RELEASE=23.02 | ||
DISTRIB_CODENAME= | ||
DISTRIB_DESCRIPTION="Manjaro ARM Linux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../usr/lib/os-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
NAME="Manjaro ARM" | ||
ID="manjaro-arm" | ||
ID_LIKE="manjaro arch" | ||
PRETTY_NAME="Manjaro ARM" | ||
ANSI_COLOR="1;32" | ||
HOME_URL="https://www.manjaro.org/" | ||
SUPPORT_URL="https://forum.manjaro.org/c/arm/" | ||
LOGO=manjarolinux |