diff options
| -rw-r--r-- | justfile | 7 | ||||
| -rw-r--r-- | systemd-units/.ignore | 7 |
2 files changed, 13 insertions, 1 deletions
@@ -167,10 +167,15 @@ services-drift: tmp=$(mktemp -d); trap 'rm -rf "$tmp"' EXIT cat systemd-units/*.txt 2>/dev/null \ | grep -v '^\s*#' | grep -v '^\s*$' | sort -u > "$tmp/curated" + if [ -f systemd-units/.ignore ]; then + grep -v '^\s*#' systemd-units/.ignore | grep -v '^\s*$' | sort -u > "$tmp/ignore" + else + : > "$tmp/ignore" + fi systemctl list-unit-files --state=enabled --no-legend 2>/dev/null \ | awk '{print $1}' | grep -vE '@\.' | sort -u > "$tmp/enabled" comm -23 "$tmp/curated" "$tmp/enabled" | sed 's/^/ not-enabled: /' - comm -13 "$tmp/curated" "$tmp/enabled" | sed 's/^/ uncurated: /' + comm -13 "$tmp/curated" "$tmp/enabled" | comm -23 - "$tmp/ignore" | sed 's/^/ uncurated: /' # ═══════════════════════════════════════════════════════════════════ diff --git a/systemd-units/.ignore b/systemd-units/.ignore new file mode 100644 index 0000000..2e2f56a --- /dev/null +++ b/systemd-units/.ignore @@ -0,0 +1,7 @@ +# Systemd units to suppress from 'just services-drift' uncurated output. +# Typically distro defaults enabled by systemd presets that are neither +# worth curating nor worth disabling. One unit per line, # comments OK. + +remote-fs.target +systemd-network-generator.service +systemd-userdbd.socket |
