Revert "OS (Linux): remove special handling of Loc-OS"

This reverts commit 5ec272acff.
This commit is contained in:
李通洲
2024-05-26 09:37:31 +08:00
parent b030bd6751
commit 152f5d3fa6
+6
View File
@@ -157,6 +157,12 @@ static bool detectDebianDerived(FFOSResult* result)
ffStrbufSetNS(&result->versionID, versionEnd - versionStart, result->prettyName.chars + versionStart);
return true;
}
else if (ffStrbufStartsWithS(&result->name, "Loc-OS"))
{
ffStrbufSetS(&result->id, "locos");
ffStrbufSetS(&result->idLike, "debian");
return true;
}
else if (ffPathExists("/usr/bin/pveversion", FF_PATHTYPE_FILE))
{
ffStrbufSetS(&result->id, "pve");