Hi,

on 6.2, kernel relinking is done last in rc:

# Re-link the kernel, placing the objects in a random order.
# Replace current with relinked kernel and inform root about it.
/usr/libexec/reorder_kernel &

I have some boxes which have /var /tmp and /dev mounted as mfs,
while others are mounted from local SDcard and kept read-only.

Historically I used @reboot cron for remounting local filesystems (mount
-urA -t nomfs), but this prevents relinking libraries, and - as of 6.2
- relinking kernel, because cron is started earlier in rc.

I am currently remounting local file systems late by modifying rc
(terrible I know):
/usr/libexec/reorder_kernel && mount -urA -t nomfs >/dev/null 2>&1

I know read-only setups are unsupported, modifying base files as
well, but if someone has an advice on what would be a better way of
remounting local file systems read-only after kernel relinking is done,
I'd be grateful.

Thank you in advance,
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/

Reply via email to