mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-08 07:00:28 +01:00
15 lines
357 B
Bash
15 lines
357 B
Bash
#!/bin/sh
|
|
#
|
|
# Change the systemd wait time from 90s to 10s, preventing the
|
|
# system from hanging at shutdown.
|
|
#
|
|
# https://unix.stackexchange.com/questions/273876
|
|
# https://old.reddit.com/r/archlinux/comments/4bawf7
|
|
|
|
set -xe
|
|
|
|
SYSTEMD="/mnt/etc/systemd/system.conf"
|
|
|
|
echo "DefaultTimeoutStartSec=10s" >> $SYSTEMD
|
|
echo "DefaultTimeoutStopSec=10s" >> $SYSTEMD
|