On 2022/10/25 12:31, Peter Stuge wrote: > Hi, > > I'm a big fan of readonly filesystems in embedded. > > Janne Johansson wrote: > > Don't think readonly / works, > > Hmm, why would it not? > > > Stuart Henderson wrote: > > It should be possible to remount / as read-only after reorder_kernel > > is done, or immediately in rc.local if you disable reorder_kernel. > > This seems to imply that the kernel neccessarily mounts root rw.
Not the kernel, but /etc/rc. 389 # Re-mount the root filesystem read/writeable. (root on nfs requires this, 390 # others aren't hurt.) 391 mount -uw / 392 chmod og-rwx /bsd 393 ln -fh /bsd /bsd.booted