diff options
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-boot_1.0.bb | 7 |
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 | ||
10 | do_install() { | 10 | do_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 | ||
14 | inherit allarch | 19 | inherit allarch |
15 | 20 | ||
16 | FILES_${PN} += " /init " | 21 | FILES_${PN} += "/init /dev/console" |