From 58bff4f54e43c8fbb7b902e6ff986cc74e4d7d7b Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 2 Oct 2024 11:28:06 +0200 Subject: [PATCH] add Buildroot fix #1520 --- CHANGELOG.md | 1 + include/osdetection | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35ce224d..8033ff0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - FILE-6398 - Only perform test if we know if Linux kernel is monolithic/modular - KRNL-5622 - Test if systemctl binary is set - OS detection for Fedora Linux Asahi Remix +- OS detection for Buildroot --------------------------------------------------------------------------------- diff --git a/include/osdetection b/include/osdetection index 9d579ccb..8bd7288a 100644 --- a/include/osdetection +++ b/include/osdetection @@ -202,6 +202,12 @@ 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 '"') ;; + "buildroot") + LINUX_VERSION="Buildroot" + OS_NAME="Buildroot" + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "bunsenlabs") LINUX_VERSION="BunsenLabs" OS_NAME="BunsenLabs"