nix-config/sh/install/014-systemd
Donovan Glover 4e81aab657
Move installation steps to install directory
This helps separate the installation process from the other scripts that
are usually ran after a reboot, although this may change in the future
if chroot is preferred over executing the commands later.
2018-09-06 15:18:39 -04:00

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