diff options
author | Simon Biewald <simon@fam-biewald.de> | 2020-08-27 22:44:40 +0300 |
---|---|---|
committer | Simon Biewald <simon@fam-biewald.de> | 2020-08-27 22:49:17 +0300 |
commit | 93a71539d58251b47f07783b4a7d97813460bb81 (patch) | |
tree | 4c6320ac085141a370ce5880b1a83a1faa419e69 /include/osdetection | |
parent | 7df0b8618b5cce39961b245a3c582af4294276d7 (diff) |
Add support for Flatcar Container Linux
Fixes cisofy/lynis#1014.
Flatcar is a for of CoreOS. Thus the variable LINUX_VERSION_LIKE
(introduced with #1004) for Flatcar is CoreOS.
Diffstat (limited to 'include/osdetection')
-rw-r--r-- | include/osdetection | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection index c2726d31..d12cab48 100644 --- a/include/osdetection +++ b/include/osdetection @@ -190,6 +190,12 @@ OS_REDHAT_OR_CLONE=1 OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') ;; + "flatcar") + LINUX_VERSION="Flatcar" + LINUX_VERSION_LIKE="CoreOS" + OS_NAME="Flatcar Linux" + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "gentoo") LINUX_VERSION="Gentoo" OS_NAME="Gentoo Linux" |