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.
This commit is contained in:
@@ -208,6 +208,16 @@ HandleLidSwitchDocked=ignore
|
|||||||
HandlePowerKey=ignore
|
HandlePowerKey=ignore
|
||||||
XEOF
|
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.
|
# Disable Xorg screensaver + DPMS so display stays on during long erasures.
|
||||||
# Numbered 00-* to run before vendor xinitrc.d hooks.
|
# Numbered 00-* to run before vendor xinitrc.d hooks.
|
||||||
mkdir -p /run/newroot/etc/X11/xinit/xinitrc.d
|
mkdir -p /run/newroot/etc/X11/xinit/xinitrc.d
|
||||||
|
|||||||
Reference in New Issue
Block a user