]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Tue, 7 May 2019 09:12:53 +0000 (10:12 +0100)
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>
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
 }