Skip to contentSkip to conversation

initscripts: insure checkroot.sh runs before anything writing to the file

PATCH New [email protected] 1 participant 2 messages Oct 12, 2013

lore
Share & tools
lore
#0 lore raw

cover initscripts: insure checkroot.sh runs before anything writing to the file

From: Chen Qi <[email protected]>

The following changes since commit 5445f71fc812a5fcf9bd67a26a500284af16ad39:

bitbake: hob: change tooltip for live images (2013-10-07 16:25:02 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/checkroot.sh
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/checkroot.sh

Jeffrey C Honig (1):
initscripts: insure checkroot.sh runs before anything writing to the
file

 meta/recipes-core/initscripts/initscripts_1.0.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 initscripts: insure checkroot.sh runs before anything writing to the file

From: Jeffrey C Honig <[email protected]>

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.

---
 meta/recipes-core/initscripts/initscripts_1.0.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts_1.0.bb +1 -1
index 5b5085f..c2998c3 100644
@@ -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 .
Signature · 1 line
1.7.9.5