I have an embedded device that I want to harden against data corruption due to unexpected power outages. It is a vanilla Ubuntu 20.04 LTS build with an app in a docker container on top, and I have established the handful of directories in the root filesystem that are touched by the app during normal operation.
My intention is to mount all but those directories read-only. Is it possible to mount some of the RFS in a RO partition and the rest in a separate RW partition, or is there a better approach to this?
Much appreciated in advance!