summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@gmail.com>2018-12-25 10:20:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-11 10:39:09 +0000
commitc7e4495b2c679253859c84b23f885b8890da6463 (patch)
tree4d2bed90cbadf0ec05f2fb029e62acf9d89e41f3 /meta/recipes-core/initrdscripts
parent18c1b63cb2d317f6f60ab19c65b16f330f8ceb0a (diff)
downloadpoky-c7e4495b2c679253859c84b23f885b8890da6463.tar.gz
initramfs-boot: create /dev/console
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>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb
index 7ae7969f5e..29ec5ec2ff 100644
--- a/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb
@@ -9,8 +9,13 @@ S = "${WORKDIR}"
9 9
10do_install() { 10do_install() {
11 install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init 11 install -m 0755 ${WORKDIR}/init-boot.sh ${D}/init
12
13 # Create device nodes expected by some kernels in initramfs
14 # before even executing /init.
15 install -d ${D}/dev
16 mknod -m 622 ${D}/dev/console c 5 1
12} 17}
13 18
14inherit allarch 19inherit allarch
15 20
16FILES_${PN} += " /init " 21FILES_${PN} += "/init /dev/console"