From b30406190cd16cc86d6c9bb0ef8538719cfd8b8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 31 Jul 2026 15:49:24 +0200 Subject: [PATCH] suppress kernel cli options that prevent headless booting --- targets/raspberrypi.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/targets/raspberrypi.mk b/targets/raspberrypi.mk index 1ebd79d..29ddb26 100644 --- a/targets/raspberrypi.mk +++ b/targets/raspberrypi.mk @@ -89,6 +89,11 @@ _format_boot: ${PBOOT} _format: _format_root _format_boot +${CFGROOT}/etc/kernel/postinst.d/z50-raspi-firmware: _copy .FORCE + sed -Ei 's; (rootwait|fsck\.repair=yes);;g' "$@" + +_initrd: ${CFGROOT}/etc/kernel/postinst.d/z50-raspi-firmware + ${CFGROOT}/boot/firmware/cmdline.txt: _config .FORCE sed -Ei 's;root=/dev/loop[0-9]+;root=/dev/mmcblk0p2;' "$@" -- 2.47.3