Skip to content

Commit c9adab3

Browse files
committed
OS (Linux): detect Raspberry Pi OS
Fix #1773
1 parent c8d1d29 commit c9adab3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/detection/os/os_linux.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ FF_MAYBE_UNUSED static bool detectDebianDerived(FFOSResult* result)
231231
ffStrbufSetF(&result->prettyName, "Proxmox VE %s", result->versionID.chars);
232232
return true;
233233
}
234+
else if (ffStrbufContainS(&instance.state.platform.sysinfo.release, "+rpt-rpi-"))
235+
{
236+
// Raspberry Pi OS
237+
ffStrbufSetS(&result->id, "raspbian");
238+
ffStrbufSetS(&result->idLike, "debian");
239+
ffStrbufSetS(&result->name, "Raspberry Pi OS");
240+
ffStrbufSetS(&result->prettyName, "Raspberry Pi OS");
241+
return true;
242+
}
234243
else
235244
{
236245
// Hack for MX Linux. See #847

0 commit comments

Comments
 (0)