-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