]> code.ossystems Code Review - openembedded-core.git/commitdiff
initramfs-framework: init: Stop mount warnings during boot
authorOtavio Salvador <otavio@ossystems.com.br>
Sun, 25 Nov 2012 19:27:27 +0000 (17:27 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Dec 2012 13:48:23 +0000 (13:48 +0000)
For a completely quiet boot using recent versions of utilities, the
/etc/fstab and /var/lock need to be available.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/init

index fc4b0db4b4b981eb36dd1243acbd0719d22624e7..0be8f4dafd76339d7d2a4bfa24fd937ff4467c0b 100755 (executable)
@@ -68,8 +68,11 @@ MODULE_PRE_HOOKS=""  # functions to call before running each module
 MODULE_POST_HOOKS="" # functions to call after running each module
 MODULES_DIR=/init.d  # place to look for modules
 
-# initialize /proc and /sys
-mkdir -p /proc /sys
+# make mount stop complaining about missing /etc/fstab
+touch /etc/fstab
+
+# initialize /proc, /sys and /var/lock
+mkdir -p /proc /sys /var/lock
 mount -t proc proc /proc
 mount -t sysfs sysfs /sys