I need configure OpensuseLeap 42.2 embedded and is necessary convert the root partition read only to prevent changes. We try to do it in fstab but hangs when the system probably write in something related with X Windows or some to register. How to control the mount startup? Now the systemctl or systemd seems to do it and before was inittrd.
I want to add the previous configuration of partitions. We created :
/ (root partition) XFS
/boot EXT4
/var XFS
/tmp XFS
/srv XFS
So , the boot partition is read-only and we need also the “/” (root) partition.
Thanks
AFAICT this is not going to work. The system needs writing in f.e. /etc, /run . Just think of files like /etc/resolv.conf , various .pid files in /run, the entire /proc
SLES12 claims support for read-only root (https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/#fate-316732). As Leap 42.x is based on SLES12, it may work. This needs testing with exact application set, as each application may have own unique requirements for read-write areas. I am involved in project that is based on shared read-only NFS image for root; it worked since SLES9 (or even SLES8, I really forgot), but it is specialized appliance for well-defined set of applications and required custom image which replaced files/directories with links into private read-write area where necessary.
Hi arvidjaar,
efectively I see that feature, but I don’t see documentation or tutorial about how to configure. I need configure that to prevent damage on filesystem because abrupt shutdowns.