From e133b5db92164c4351229424ae40cf158a9b1e1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 3 Jul 2020 14:38:42 +0200 Subject: [PATCH] raspi modules, systemd timeout --- modules/default.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.2