read-only-rootfs image feature.
Enable the read-only root filesystem
To enable a read-only root filesystem, addread-only-rootfs to IMAGE_FEATURES in the image recipe.
In meta-qcom-distro/recipes-products/images/qcom-minimal-image.bb, do the following changes:
read-only-rootfs image feature configures the generated root filesystem to be mounted as read-only at runtime.
[!NOTE]
Packages included in an image with read-only-rootfs must complete the required configuration during image creation. Packages that require delayed post-installation operations which modify the root filesystem at runtime can cause the image build to fail.

