mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

The Yocto kernel expects a proper /dev/console to exist before running init, otherwise booting will fail with the message: Kernel panic - not syncing: /dev/console is missing or not a character device! Please ensure your rootfs is properly configured Add similar fix as was done for initramfs-framework and initramfs-live-boot in commits 0352841cd92f6316bcac092e2fff9d28c352b36b 1b64664f0c388f41084f5db6e46e3e68c53fb6d9 (From OE-Core rev: 490d6fbd14805b6c72b525fbe8c9c6e08d796597) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
532 B
BlitzBasic
22 lines
532 B
BlitzBasic
SUMMARY = "Extremely basic live image init script"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
SRC_URI = "file://init-boot.sh"
|
|
|
|
PR = "r2"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init
|
|
|
|
# Create device nodes expected by some kernels in initramfs
|
|
# before even executing /init.
|
|
install -d ${D}/dev
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
|
}
|
|
|
|
inherit allarch
|
|
|
|
FILES_${PN} += "/init /dev/console"
|