Patchwork [2/2] initramfs-framework: init: Stop mount warnings during boot

login
register
mail settings
Submitter Otavio Salvador
Date Nov. 27, 2012, 11:55 a.m.
Message ID <1354017303-22536-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/39675/
State New
Headers show

Comments

Otavio Salvador - Nov. 27, 2012, 11:55 a.m.
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>
---
 meta/recipes-core/initrdscripts/initramfs-framework/init   |    7 +++++--
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index fc4b0db..0be8f4d 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
 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
 
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index cbb4a39..fac356c 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -3,7 +3,7 @@  LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 RDEPENDS = "busybox"
 
-PR = "r2"
+PR = "r3"
 
 inherit allarch