diff --git a/CHANGELOG.md b/CHANGELOG.md index 027b7e66..ca3f9067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Lynis 3.1.3 (not released yet) ### Added -- Detection of Buildroot, Fedora Linux Asahi Remix, Peppermint OS +- Detection of Buildroot, Fedora Linux Asahi Remix, Garden Linux, Peppermint OS ### Changed - FILE-6398 - Only perform test if we know if Linux kernel is monolithic/modular diff --git a/include/osdetection b/include/osdetection index 5890cd7f..fda72333 100644 --- a/include/osdetection +++ b/include/osdetection @@ -289,6 +289,13 @@ OS_FULLNAME="Funtoo Linux" OS_VERSION="Rolling release" ;; + "gardenlinux") + LINUX_VERSION="Garden Linux" + LINUX_VERSION_LIKE="Debian" + OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "garuda") LINUX_VERSION="Garuda" OS_FULLNAME="Garuda Linux" @@ -504,14 +511,6 @@ OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') ;; - "gardenlinux") - LINUX_VERSION="Garden Linux" - LINUX_VERSION_LIKE="Debian" - OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') - OS_VERSION=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') - OS_VERSION_FULL=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') - - ;; *) ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the contents (cat /etc/os-release): ${PROGRAM_SOURCE}" ;;