1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 04:58:57 +00:00

arm-autonomy/init: Change execution order between modutils.sh and checkroot.sh

When '/' is first mounted as read-only, we want to have the checkroot.sh
initscript (which then remounts '/' as rw if allowed) running before the
modutils.sh.
This is because modutils.sh initscript might need to run depmod depending on
the status of the modules.dep file to update it and the '/' needs to be
writable.

Change-Id: Idac9aa19fba6b6bf46532097a667ce0518af515c
Issue-Id: SCM-1654
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Diego Sueiro
2020-11-17 10:04:48 +00:00
committed by Jon Mason
parent e9e01e9be7
commit a996166e85
2 changed files with 7 additions and 0 deletions
@@ -0,0 +1,5 @@
do_install_append() {
# We want to have checkroot.sh running before modutils.sh (06)
update-rc.d -r ${D} -f checkroot.sh remove
update-rc.d -r ${D} checkroot.sh start 05 S .
}
@@ -0,0 +1,2 @@
# We want to have modutils.sh running after checkroot.sh (05)
INITSCRIPT_PARAMS = "start 06 S ."