Commit 81c59b6b authored by Josua Mayer's avatar Josua Mayer

debian/ubuntu: enable servicing watchdog every 30 seconds

Signed-off-by: default avatarJosua Mayer <josua@solid-run.com>
parent 78985e2c
......@@ -297,6 +297,7 @@ case "\$1" in
chroot /mnt apt update
chroot /mnt apt install --no-install-recommends -y systemd-sysv apt locales less wget procps openssh-server ifupdown net-tools isc-dhcp-client ntpdate lm-sensors i2c-tools psmisc less sudo htop iproute2 iputils-ping kmod network-manager iptables rng-tools apt-utils ethtool
echo -e "root\nroot" | chroot /mnt passwd
sed -i "s;[# ]*RuntimeWatchdogSec=.*\$;RuntimeWatchdogSec=30;g" /etc/systemd/system.conf
umount /mnt/var/lib/apt/
umount /mnt/var/cache/apt
chroot /mnt apt clean
......@@ -359,6 +360,7 @@ case "\$1" in
echo "localhost" > /mnt/etc/hostname
echo "127.0.0.1 localhost" > /mnt/etc/hosts
echo -e "root\nroot" | chroot /mnt passwd
sed -i "s;[# ]*RuntimeWatchdogSec=.*\$;RuntimeWatchdogSec=30;g" /etc/systemd/system.conf
umount /mnt/var/lib/apt/
umount /mnt/var/cache/apt/
reboot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment