Skip to content

Commit a016397

Browse files
OS (Linux): combine all armbian variants (#1547)
1 parent 99e8d1f commit a016397

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/detection/os/os_linux.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ static bool parseOsRelease(const char* fileName, FFOSResult* result)
4141
// Common logic for detecting Armbian image version
4242
FF_MAYBE_UNUSED static bool detectArmbianVersion(FFOSResult* result)
4343
{
44-
if (ffStrbufStartsWithS(&result->prettyName, "Armbian ")) // Official Armbian release images
44+
// Possible values `PRETTY_NAME` starts with on Armbian:
45+
// - `Armbian` for official releases
46+
// - `Armbian_community` for community releases
47+
// - `Armbian_Security` for images with kali repo added
48+
// - `Armbian-unofficial` for an unofficial image built from source, e.g. during development and testing
49+
if (ffStrbufStartsWithS(&result->prettyName, "Armbian"))
4550
ffStrbufSetS(&result->name, "Armbian");
46-
else if (ffStrbufStartsWithS(&result->prettyName, "Armbian-unofficial ")) // Unofficial Armbian image built from source
47-
ffStrbufSetS(&result->name, "Armbian (custom build)");
4851
else
4952
return false;
5053
ffStrbufSet(&result->idLike, &result->id);

0 commit comments

Comments
 (0)