summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-11-25 17:27:27 -0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-13 15:21:41 +0000
commit82295b9bbd5dfd922786f815626863323f7f4ea4 (patch)
treeba318dae01269c94c18bdc86100a44ba4c4e696f /meta
parent79ef9ed12e05b8a257f89ab7a7e4c4a541ac38e2 (diff)
downloadpoky-82295b9bbd5dfd922786f815626863323f7f4ea4.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: 49434f789a772620a8eae7220812296523616956) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init7
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
68MODULE_POST_HOOKS="" # functions to call after running each module 68MODULE_POST_HOOKS="" # functions to call after running each module
69MODULES_DIR=/init.d # place to look for modules 69MODULES_DIR=/init.d # place to look for modules
70 70
71# initialize /proc and /sys 71# make mount stop complaining about missing /etc/fstab
72mkdir -p /proc /sys 72touch /etc/fstab
73
74# initialize /proc, /sys and /var/lock
75mkdir -p /proc /sys /var/lock
73mount -t proc proc /proc 76mount -t proc proc /proc
74mount -t sysfs sysfs /sys 77mount -t sysfs sysfs /sys
75 78