> Also the system is probable to suffer electrical failures and since OBSD > is contained in a CF card I become very interested in running it over an > unique read-only partition. > > The first option was add the "ro" flag to the fstab file, but it's ignored > and the system leaves the root fs in "rw" mode. The second (and desesperate) > option was add "mount -o ro /" to /etc/rc.local which seems cause a kernel > panic (no suprise here) > > is it possible to have a root fs in read-only mode with OBSD?
I think I found a valid solution. OBSD is installed in the soekris box by means of PEX/DHCP/TFTP, so no problems with geometry mismatches as with the flashdist approach. Next copy /dev/MAKEDEV to /root (or whatever place that you like) and modidy /etc/rc around the line 200 (after the mount -a command group) ... mount_mfs -s 10000 swap /dev mount_mfs -s 1000 swap /tmp mount_mfs -s 1000 swap /var/log mount_mfs -s 1000 swap /var/run # add mfs mountpoints for other critical directories. cd /dev ; /root/MAKEDEV ramdisk wscons pty pf tun mount -o ro / ... ramdisk, wscons and pty seems to be minimal devices to get basic funcionality. pf permits run pf and tun permits openvpn to work. Regards -- GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w--- O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++ G++ e- h+(++) !r !z ------END GEEK CODE BLOCK------

