mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-03 21:53:26 +01:00
4e81aab657
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.
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
|