fix: Updater meldet den LXC-Drop-in nur noch, wenn sich wirklich etwas aendert (v0.7.2)

Nachlese aus der Verifikation von v0.7.1 auf einem frischen Debian 12.

- update.sh meldete "LXC-Drop-in nachgezogen ✓" auch bei unveraenderter
  Datei — dieselbe Klasse Unwahrheit wie das Ghostscript-Haekchen, das in
  v0.7.1 behoben wurde. Jetzt wird verglichen und ehrlich gemeldet.
- "Quelle wieder entfernt" ist Teil der schlechten Nachricht und kommt als
  WARN statt INFO.

254 Tests gruen.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-23 02:14:27 +02:00
parent 465ff8873f
commit 1b67c846a2
7 changed files with 27 additions and 8 deletions
+10 -3
View File
@@ -1010,9 +1010,16 @@ install_units() {
# Container-Instanzen (Error 226/NAMESPACE).
if [ -f "$LXC_DROPIN" ]; then
if [ -f "$REPO_DIR/systemd/lxc-compat.conf" ]; then
cp "$REPO_DIR/systemd/lxc-compat.conf" "$LXC_DROPIN"
LXC_SYNCED=1
log_info "LXC-Drop-in nachgezogen: $LXC_DROPIN ✓"
# Nur melden, was wirklich passiert ist: war die Datei schon
# identisch, ist "nachgezogen" eine Aussage ueber eine Aenderung,
# die es nicht gab.
if cmp -s "$REPO_DIR/systemd/lxc-compat.conf" "$LXC_DROPIN"; then
log_info "LXC-Drop-in bereits aktuell: $LXC_DROPIN"
else
cp "$REPO_DIR/systemd/lxc-compat.conf" "$LXC_DROPIN"
LXC_SYNCED=1
log_info "LXC-Drop-in nachgezogen: $LXC_DROPIN ✓"
fi
else
log_warn "systemd/lxc-compat.conf fehlt im Repo — Drop-in bleibt alt."
fi