Patchwork [1/1] initscripts: insure checkroot.sh runs before anything writing to the file

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Oct. 12, 2013, 5:30 a.m.
Message ID <00bd39f1abd730ccdb758ce61ead4a7be92a4305.1381555764.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/59725/
State Accepted
Commit 13c9bc143f6861517970dafdc7e7a45740d0933d
Headers show

Comments

Qi.Chen@windriver.com - Oct. 12, 2013, 5:30 a.m.
From: Jeffrey C Honig <jeffrey.honig@windriver.com>

If bootlogd was configured to write to a log file on the root file system,
the checkroot.sh was not able to change the rootfs to read-only because
bootlogd was started earlier and had a file descriptor open.  Lowering
the order of checkroot.sh ensures that the volatile filesystem is set
up before anything writes to it.

Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com>
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/initscripts/initscripts_1.0.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 5b5085f..c2998c3 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -114,7 +114,7 @@  do_install () {
 	update-rc.d -r ${D} halt start 90 0 .
 	update-rc.d -r ${D} save-rtc.sh start 25 0 6 .
 	update-rc.d -r ${D} banner.sh start 02 S .
-	update-rc.d -r ${D} checkroot.sh start 10 S .
+	update-rc.d -r ${D} checkroot.sh start 06 S .
 	update-rc.d -r ${D} mountall.sh start 35 S .
 	update-rc.d -r ${D} hostname.sh start 39 S .
 	update-rc.d -r ${D} mountnfs.sh start 45 S .