diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-07 21:23:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-08 15:24:28 +0000 |
commit | ed2ac23c5b47c1aa2d5371f2b4c29f471501928a (patch) | |
tree | 5bebed84cb2a46f84134e301365a3a3713258b85 /meta/recipes-core/initrdscripts/initramfs-framework/udev | |
parent | 1e459c83e5092b6e1e7d73dce22b29c9e3138607 (diff) | |
download | poky-ed2ac23c5b47c1aa2d5371f2b4c29f471501928a.tar.gz |
initramfs-framework: provides a modular initramfs
Provides the API and modules for a modular initramfs. The currently
included modules are:
* initramfs-module-debug adds support to dynamic debugging of
initramfs using bootparams
* initramfs-module-udev: enables udev usage
* initramfs-module-mdev: enables mdev usage
* initramfs-module-e2fs: adds support for ext4, ext3 and ext2
filesystems
(From OE-Core rev: 7b69ad2167a1f0e57db82817b98a0cbcb70a0dd3)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/udev')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-framework/udev | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/udev b/meta/recipes-core/initrdscripts/initramfs-framework/udev new file mode 100644 index 0000000000..9ea8aa3641 --- /dev/null +++ b/meta/recipes-core/initrdscripts/initramfs-framework/udev | |||
@@ -0,0 +1,22 @@ | |||
1 | #!/bin/sh | ||
2 | # Copyright (C) 2011 O.S. Systems Software LTDA. | ||
3 | # Licensed on MIT | ||
4 | |||
5 | udev_enabled() { | ||
6 | if [ ! -e /sbin/udevd ]; then | ||
7 | debug "/sbin/udev doesn't exist" | ||
8 | return 1 | ||
9 | fi | ||
10 | |||
11 | return 0 | ||
12 | } | ||
13 | |||
14 | udev_run() { | ||
15 | mkdir -p /run | ||
16 | |||
17 | udevd --daemon > /dev/null | ||
18 | udevadm trigger --action=add | ||
19 | udevadm settle | ||
20 | |||
21 | killall udevd 2>/dev/null | ||
22 | } | ||