diff options
author | Ross Burton <ross.burton@intel.com> | 2012-11-12 16:18:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-12 22:31:20 +0000 |
commit | fe16cbc6ed42c8764ac25417b72668d55f573e86 (patch) | |
tree | aceda4c2207093271cdcf122334138e69b94ff1e /meta/recipes-core/initrdscripts/files | |
parent | 9cc79b2f4daa64dbf3ad92980800101909521f57 (diff) | |
download | poky-fe16cbc6ed42c8764ac25417b72668d55f573e86.tar.gz |
initrdscripts: fix udevd in the live boot init scripts
udevd moved location and isn't in $PATH anymore, so use an absolute path to
start it.
The control socket path moved too, so mkdir the directory it's in.
Mounts the new devtmpfs on /dev device tree.
(From OE-Core rev: 543606e5dc379497c34196d004a214e847f5db2d)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts/files')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh index 5682fd18c1..c591f0d386 100644 --- a/meta/recipes-core/initrdscripts/files/init-live.sh +++ b/meta/recipes-core/initrdscripts/files/init-live.sh | |||
@@ -14,12 +14,14 @@ early_setup() { | |||
14 | mkdir -p /sys | 14 | mkdir -p /sys |
15 | mount -t proc proc /proc | 15 | mount -t proc proc /proc |
16 | mount -t sysfs sysfs /sys | 16 | mount -t sysfs sysfs /sys |
17 | mount -t devtmpfs none /dev | ||
17 | 18 | ||
18 | # support modular kernel | 19 | # support modular kernel |
19 | modprobe isofs 2> /dev/null | 20 | modprobe isofs 2> /dev/null |
20 | 21 | ||
21 | mkdir -p /run | 22 | mkdir -p /run |
22 | udevd --daemon | 23 | mkdir -p /var/run |
24 | /lib/udev/udevd --daemon | ||
23 | udevadm trigger --action=add | 25 | udevadm trigger --action=add |
24 | } | 26 | } |
25 | 27 | ||