Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions src/detection/os/os_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ FF_A_UNUSED static bool detectDebianDerived(FFOSResult* result) {
ffStrbufSetStatic(&result->idLike, "debian");
return true;
} else if (access("/usr/bin/pveversion", X_OK) == 0) {
ffStrbufSetStatic(&result->id, "pve");
ffStrbufSetStatic(&result->id, "proxmox");
ffStrbufSetStatic(&result->idLike, "debian");
ffStrbufSetStatic(&result->name, "Proxmox VE");
ffStrbufClear(&result->versionID);
Expand All @@ -220,8 +220,30 @@ FF_A_UNUSED static bool detectDebianDerived(FFOSResult* result) {
NULL,
}) == NULL) { // 8.2.2
ffStrbufTrimRightSpace(&result->versionID);
ffStrbufSetStatic(&result->prettyName, "Proxmox VE ");
ffStrbufAppend(&result->prettyName, &result->versionID);
} else {
ffStrbufSetStatic(&result->prettyName, "Proxmox VE");
}
return true;
} else if (access("/usr/sbin/proxmox-backup-manager", X_OK) == 0) {
ffStrbufSetStatic(&result->id, "proxmox");
ffStrbufSetStatic(&result->idLike, "debian");
ffStrbufSetStatic(&result->name, "Proxmox Backup Server");
ffStrbufClear(&result->versionID);
if (ffProcessAppendStdOut(&result->versionID, (char* const[]) {
"/usr/bin/dpkg-query",
"--showformat=${version}",
"--show",
"proxmox-backup-server",
NULL,
}) == NULL) {
ffStrbufTrimRightSpace(&result->versionID);
ffStrbufSetStatic(&result->prettyName, "Proxmox Backup Server ");
ffStrbufAppend(&result->prettyName, &result->versionID);
} else {
ffStrbufSetStatic(&result->prettyName, "Proxmox Backup Server");
}
ffStrbufSetF(&result->prettyName, "Proxmox VE %s", result->versionID.chars);
return true;
} else if (ffPathExists("/etc/rpi-issue", FF_PATHTYPE_FILE)) {
// Raspberry Pi OS
Expand Down
2 changes: 1 addition & 1 deletion src/logo/ascii/p.inc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static const FFlogo P[] = {
#ifdef FASTFETCH_DATATEXT_LOGO_PROXMOX
// Proxmox
{
.names = { "Proxmox", "pve" },
.names = { "Proxmox" },
.lines = FASTFETCH_DATATEXT_LOGO_PROXMOX,
.colors = {
FF_COLOR_FG_WHITE,
Expand Down
Loading