[2/9] initramfs-framework: fix an error in udev module

Submitted by Qi.Chen@windriver.com on June 16, 2014, 10:46 a.m.

Details

Message ID 833f07c28e0b62532ff428f5f60f37d3ef34fa54.1402915083.git.Qi.Chen@windriver.com
State Accepted
Commit 4db089f10a379bc9a4df287bd657153eb4b94c45
Headers show

Commit Message

Qi.Chen@windriver.com June 16, 2014, 10:46 a.m.
The /var/run directory needs to be there in order for udevd to work
correctly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../initrdscripts/initramfs-framework/udev         |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/udev b/meta/recipes-core/initrdscripts/initramfs-framework/udev
index bb462dc..79c8867 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/udev
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/udev
@@ -38,6 +38,7 @@  udev_run() {
 	add_module_pre_hook "udev_shutdown_hook_handler"
 
 	mkdir -p /run
+	mkdir -p /var/run
 
 	$_UDEV_DAEMON --daemon
 	udevadm trigger --action=add