From 1f5f9eb60ab79dc75850c6c6ff7beebff8b84f7d Mon Sep 17 00:00:00 2001 From: cproudlock Date: Mon, 5 Oct 2026 12:02:43 -0400 Subject: [PATCH] blancco-init: cap systemd stop jobs at 10s Restarting Blancco after an erasure stalled on "A stop job is running for /mnt/share": the network goes down before the SMB report share is unmounted, and the CIFS umount waits out the 90s default. Reports are written long before shutdown, so set DefaultTimeoutStopSec=10s in the switched-to rootfs. --- playbook/blancco-init.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbook/blancco-init.sh b/playbook/blancco-init.sh index 42caba7..7ab524f 100644 --- a/playbook/blancco-init.sh +++ b/playbook/blancco-init.sh @@ -208,6 +208,16 @@ HandleLidSwitchDocked=ignore HandlePowerKey=ignore XEOF +# Restart after an erasure stalled on "A stop job is running for +# /mnt/share": the network goes down before the SMB report share is +# unmounted, and the CIFS umount waits out systemd's 90s default. Reports +# are written long before shutdown, so cap stop jobs at 10s. +mkdir -p /run/newroot/etc/systemd/system.conf.d +cat > /run/newroot/etc/systemd/system.conf.d/10-fast-stop.conf << XEOF +[Manager] +DefaultTimeoutStopSec=10s +XEOF + # Disable Xorg screensaver + DPMS so display stays on during long erasures. # Numbered 00-* to run before vendor xinitrc.d hooks. mkdir -p /run/newroot/etc/X11/xinit/xinitrc.d