diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-26 13:31:18 -0400 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-04-27 10:37:13 +0800 |
commit | 15a25c9a4a1c5fb99d252d6422b56ecc92195433 (patch) | |
tree | a3e9ead25f493fd4de9df46f28526af1589f4780 | |
parent | bd31f81f78268d144aaca3faf42a505a771eec47 (diff) | |
download | meta-secure-core-15a25c9a4a1c5fb99d252d6422b56ecc92195433.tar.gz |
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 <trini@konsulko.com>
-rw-r--r-- | meta/recipes-core/initrdscripts/initrdscripts-secure-core.bb | 6 |
1 files changed, 6 insertions, 0 deletions
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() { | |||
14 | # Create device nodes expected by kernel in initramfs | 14 | # Create device nodes expected by kernel in initramfs |
15 | # before executing /init. | 15 | # before executing /init. |
16 | install -d "${D}/dev" | 16 | install -d "${D}/dev" |
17 | install -d "${D}/proc" | ||
18 | install -d "${D}/sys" | ||
19 | install -d "${D}/run" | ||
17 | mknod -m 0600 "${D}/dev/console" c 5 1 | 20 | mknod -m 0600 "${D}/dev/console" c 5 1 |
18 | } | 21 | } |
19 | 22 | ||
20 | FILES_${PN} = "\ | 23 | FILES_${PN} = "\ |
21 | /init \ | 24 | /init \ |
22 | /dev \ | 25 | /dev \ |
26 | /proc \ | ||
27 | /sys \ | ||
28 | /run \ | ||
23 | " | 29 | " |
24 | 30 | ||
25 | # Install the minimal stuffs only, and don't care how the external | 31 | # Install the minimal stuffs only, and don't care how the external |