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