From: Paul Hänsch Date: Fri, 3 Jul 2020 12:38:42 +0000 (+0200) Subject: raspi modules, systemd timeout X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=e133b5db92164c4351229424ae40cf158a9b1e1c;p=blast raspi modules, systemd timeout --- diff --git a/modules/default.mk b/modules/default.mk index f93fd24..171f531 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -42,8 +42,9 @@ _raspberry_config: ${CFGROOT} printf '%s\n' "$${RPICONFIG}" >>"$${CFGROOT}/boot/config.txt" _raspberry_initrd: ${CFGROOT} - printf 'nilfs2\n' >>"$${CFGROOT}/etc/initramfs-tools/modules" - k="$$(echo "$${CFGROOT}"/lib/modules/*-v7+)"; \ + printf '${fstype}\n' >>"$${CFGROOT}/etc/initramfs-tools/modules" + k="${kernel}"; \ + [ "$$k" ] || k="$$(echo "$${CFGROOT}"/lib/modules/*-v7+)"; \ chroot $${CFGROOT} update-initramfs -c -k "$${k##*/}"; \ printf 'initramfs initrd.img-%s\n' "$${k##*/}" >>"$${CFGROOT}/boot/config.txt" @@ -111,6 +112,12 @@ _hostname: ${CFGROOT} printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname" sed -Ei "s;^127\.0\.0\.1.*$$;& $${hostname};" "$${CFGROOT}/etc/hosts" +.PHONY: _systemd_timeout +_config: _systemd_timeout +_systemd_timeout: ${CFGROOT} + mkdir -p "$${CFGROOT}/etc/systemd" + printf 'DefaultTimeout%sSec=%s\n' Start 10s Stop 10s >>"$${CFGROOT}/etc/systemd/system.conf" + ifdef wifi _config: ${CFGROOT}/etc/network/interfaces.d/wifi ifdef wifipass