mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-12-24 14:27:01 +00:00
feat: add ujust debug-info (#569)
This commit is contained in:
@@ -668,3 +668,17 @@ audit-secureblue:
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
# Debug dump pastebin for issue reporting
|
||||
|
||||
debug-info:
|
||||
#!/usr/bin/bash
|
||||
rpm_ostree_status=$(echo -e "=== Rpm-Ostree Status ===\n"; rpm-ostree status --verbose)
|
||||
sysinfo=$(echo -e "\n"; fpaste --sysinfo --printonly)
|
||||
flatpaks=$(echo "=== Flatpaks Installed ==="; flatpak list --columns=application,version,options)
|
||||
audit_results=$(echo -e "\n=== Audit Results ===\n"; ujust audit-secureblue)
|
||||
local_overrides=$(echo -e "\n=== Listing Local Overrides ===\n"; ujust check-local-overrides)
|
||||
recent_events=$(echo -e "\n=== Recent System Events ===\n"; journalctl -b -p err..alert --since "1 hour ago")
|
||||
failed_services=$(echo -e "\n=== Failed Services ===\n"; systemctl list-units --state=failed)
|
||||
content="$rpm_ostree_status$sysinfo$flatpaks$audit_results$local_overrides$recent_events$failed_services"
|
||||
echo "$content" | fpaste --confirm --private=1
|
||||
|
||||
Reference in New Issue
Block a user