diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-11-25 17:27:27 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-03 13:52:07 +0000 |
commit | 3d943dbac475d706eaf52f3563eb286441b439ab (patch) | |
tree | 84d1b7c8ff06447659083ddd1dc697912f55568f /meta/recipes-core | |
parent | 48e657f65458c148ae5d56e213276148eb6d1ff0 (diff) | |
download | poky-3d943dbac475d706eaf52f3563eb286441b439ab.tar.gz |
initramfs-framework: init: Stop mount warnings during boot
For a completely quiet boot using recent versions of utilities, the
/etc/fstab and /var/lock need to be available.
(From OE-Core rev: d7a8154d575f918a0a20cb0e3a8f65d02ed32f30)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index fc4b0db4b4..0be8f4dafd 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init | |||
@@ -68,8 +68,11 @@ MODULE_PRE_HOOKS="" # functions to call before running each module | |||
68 | MODULE_POST_HOOKS="" # functions to call after running each module | 68 | MODULE_POST_HOOKS="" # functions to call after running each module |
69 | MODULES_DIR=/init.d # place to look for modules | 69 | MODULES_DIR=/init.d # place to look for modules |
70 | 70 | ||
71 | # initialize /proc and /sys | 71 | # make mount stop complaining about missing /etc/fstab |
72 | mkdir -p /proc /sys | 72 | touch /etc/fstab |
73 | |||
74 | # initialize /proc, /sys and /var/lock | ||
75 | mkdir -p /proc /sys /var/lock | ||
73 | mount -t proc proc /proc | 76 | mount -t proc proc /proc |
74 | mount -t sysfs sysfs /sys | 77 | mount -t sysfs sysfs /sys |
75 | 78 | ||