From 879ab53500ee81f75ef6f27e3a3fb1af1386708a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 7 Dec 2019 03:28:48 +0100 Subject: [PATCH] generate initramfs for raspberrypi --- modules/default.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/default.mk b/modules/default.mk index 7c3133f..9f7860e 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -35,11 +35,17 @@ _keyboard: ${CFGROOT} -sed -Ei 's;^XKBLAYOUT=.*$$;XKBLAYOUT="${keyboard}";;' "$${CFGROOT}/etc/default/keyboard" ifdef raspi - _config: _raspberry_config + _config: _raspberry_config _raspberry_initrd endif + _raspberry_config: ${CFGROOT} printf '%s\n' "$${RPICONFIG}" >>"$${CFGROOT}/boot/config.txt" +_raspberry_initrd: ${CFGROOT} + k=$${CFGROOT}/lib/modules/*-v7+; \ + chroot $${CFGROOT} update-initramfs -c -k "$${k##*/}"; \ + printf 'initramfs initrd.img-%s\n' "$${k##*/}" >>"$${CFGROOT}/boot/config.txt" + .PHONY: _timezone _locales ifdef timezone -- 2.39.2