From c9adab3892d10e0e871be28210a9ba23d4413b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 10 Jun 2025 09:55:13 +0800 Subject: [PATCH] OS (Linux): detect Raspberry Pi OS Fix #1773 --- src/detection/os/os_linux.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/detection/os/os_linux.c b/src/detection/os/os_linux.c index 1397febe6..4df159560 100644 --- a/src/detection/os/os_linux.c +++ b/src/detection/os/os_linux.c @@ -231,6 +231,15 @@ FF_MAYBE_UNUSED static bool detectDebianDerived(FFOSResult* result) ffStrbufSetF(&result->prettyName, "Proxmox VE %s", result->versionID.chars); return true; } + else if (ffStrbufContainS(&instance.state.platform.sysinfo.release, "+rpt-rpi-")) + { + // Raspberry Pi OS + ffStrbufSetS(&result->id, "raspbian"); + ffStrbufSetS(&result->idLike, "debian"); + ffStrbufSetS(&result->name, "Raspberry Pi OS"); + ffStrbufSetS(&result->prettyName, "Raspberry Pi OS"); + return true; + } else { // Hack for MX Linux. See #847