From 15a25c9a4a1c5fb99d252d6422b56ecc92195433 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 26 Apr 2018 13:31:18 -0400 Subject: initrdscripts-secure-core: Provide all directories init requires Our "init" script requires additional directories to exist and since we don't pull in something like base-files that gives us a full layout we must make these additional directories on our own. Signed-off-by: Tom Rini --- meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb b/meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb index ca30e84..6a14e93 100644 --- a/meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb +++ b/meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb @@ -14,12 +14,18 @@ do_install() { # Create device nodes expected by kernel in initramfs # before executing /init. install -d "${D}/dev" + install -d "${D}/proc" + install -d "${D}/sys" + install -d "${D}/run" mknod -m 0600 "${D}/dev/console" c 5 1 } FILES_${PN} = "\ /init \ /dev \ + /proc \ + /sys \ + /run \ " # Install the minimal stuffs only, and don't care how the external -- cgit v1.2.3-54-g00ecf