Bug#1127467: sitesummary: updated debdiff v2
Hector Cao <[email protected]> Tue, 10 Feb 2026 13:31:02 +0100
| Newsgroups | gmane.linux.debian.devel.education |
|---|---|
| Message-ID | <177072666222.42965.8080556520746180862.reportbug__27367.3139208526$1770726814$gmane$org@pchector> |
This is a multi-part MIME message sent by reportbug. --===============7446986687481853696== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: sitesummary Followup-For: Bug #1127467 User: [email protected] Usertags: origin-ubuntu resolute ubuntu-patch Control: tags -1 patch Hello Petter, Here is the new proposed debdiff, please let me know what you think, Thanks for considering the patch. -- System Information: Debian Release: bookworm/sid APT prefers jammy-updates APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.19.0-41-generic (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled --===============7446986687481853696== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sitesummary_0.1.60ubuntu1.debdiff" diff -Nru sitesummary-0.1.60build1/collect.d/system sitesummary-0.1.60ubuntu1/collect.d/system --- sitesummary-0.1.60build1/collect.d/system 2023-09-09 18:52:54.000000000 +0200 +++ sitesummary-0.1.60ubuntu1/collect.d/system 2026-02-09 10:12:40.000000000 +0100 @@ -58,7 +58,13 @@ # Document current runlevel, useful to differenciate LTSP # thin clients from diskless workstations. -runlevel > runlevel +if command -v runlevel >/dev/null 2>&1; then + runlevel > runlevel +fi + +if command -v systemctl >/dev/null 2>&1 && [ -d /run/systemd/system ]; then + systemctl list-units --type=target --state=active > systemd-targets +fi # Throw away error message from laptop-detect using dmidecode in Xen # domUs. See #438693 for more info. --===============7446986687481853696==--