]> code.ossystems Code Review - openembedded-core.git/commitdiff
initrdscripts: merge multiple "mkdir" calls
authorMax Kellermann <max.kellermann@gmail.com>
Thu, 7 Mar 2019 13:04:01 +0000 (14:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 May 2019 16:25:44 +0000 (17:25 +0100)
Reduce overhead.

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>
meta/recipes-core/initrdscripts/files/init-live.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 65183d7..b20660b
@@ -28,8 +28,7 @@ udev_daemon() {
 _UDEV_DAEMON=`udev_daemon`
 
 early_setup() {
-    mkdir -p /proc
-    mkdir -p /sys
+    mkdir -p /proc /sys /run /var/run
     mount -t proc proc /proc
     mount -t sysfs sysfs /sys
     mount -t devtmpfs none /dev
@@ -37,9 +36,6 @@ early_setup() {
     # support modular kernel
     modprobe isofs 2> /dev/null
 
-    mkdir -p /run
-    mkdir -p /var/run
-
     $_UDEV_DAEMON --daemon
     udevadm trigger --action=add
 }