summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2019-03-07 14:04:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-07 10:12:53 +0100
commit4e88b4282891c2be9d216b5b4ec35bf0f18ce521 (patch)
tree03078f9302f23b04e87f595a53664db91b2b323b
parent2e7cc1525d8db91e3af094c65b854a87c432eb5b (diff)
downloadpoky-4e88b4282891c2be9d216b5b4ec35bf0f18ce521.tar.gz
initrdscripts: merge multiple "mkdir" calls
Reduce overhead. (From OE-Core rev: 31e6ea22523ded6a4e4f46472ab95ed17efe890b) Signed-off-by: Max Kellermann <max.kellermann@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x[-rw-r--r--]meta/recipes-core/initrdscripts/files/init-live.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 65183d7eec..b20660b60a 100644..100755
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -28,8 +28,7 @@ udev_daemon() {
28_UDEV_DAEMON=`udev_daemon` 28_UDEV_DAEMON=`udev_daemon`
29 29
30early_setup() { 30early_setup() {
31 mkdir -p /proc 31 mkdir -p /proc /sys /run /var/run
32 mkdir -p /sys
33 mount -t proc proc /proc 32 mount -t proc proc /proc
34 mount -t sysfs sysfs /sys 33 mount -t sysfs sysfs /sys
35 mount -t devtmpfs none /dev 34 mount -t devtmpfs none /dev
@@ -37,9 +36,6 @@ early_setup() {
37 # support modular kernel 36 # support modular kernel
38 modprobe isofs 2> /dev/null 37 modprobe isofs 2> /dev/null
39 38
40 mkdir -p /run
41 mkdir -p /var/run
42
43 $_UDEV_DAEMON --daemon 39 $_UDEV_DAEMON --daemon
44 udevadm trigger --action=add 40 udevadm trigger --action=add
45} 41}