This patch adds to makefs a new -r [read-only] command line switch. This option allows to manage the ffs superblock int8_t 'ronly' flag during fs creation.
At the moment a mount / mount -o ro actively manages (toggle) the *on-disk-state* (!?) of the attribute, but ignores the existing state. And sys/ufs seems to mange a rdonly but not ronly to figure out the existing state.
Target is to have a real working os based immutable ufs/ffs protection for rootfs/bootfs partitions, not only for (compressed) images. And Im not sure if I stumbled across a bug, missing feature or just doing something the wrong way.