I use resflash to build read-only images for my router:

https://gitlab.com/bconway/resflash/tree/master/

It's not quite a standard OpenBSD installation, but it's pretty close.

However, unless you're using really bad install media (like USB flash
memory or something) I don't think OpenBSD is very likely to suffer a
corrupted filesystem even on power outage unless you're doing very
heavy IO (and even then it's probably fine).

--
Jarkko


On Thu, 2018-11-15 at 15:26 +0100, jean-yves boisiaud wrote:
> hello,
> 
> for more than 10 years, I install OpenBSD to serve as firewalls and
> VPN
> IPSec or OpenVPN.
> 
> Some of these firewalls are near my office, while other are far away.
> 
> Most of them are not used with an UPS. It is the main reason why I
> decided
> to use root FS mounted RO. /tmp, /dev, /var and /var/log are mounted
> into
> RAM using mfs and a skeleton.
> 
> It worked fine during these 10 years.
> 
> Now, OpenBSD needs root FS mounted RW. And, from 6.4, even if fstab
> says
> root fs to be mounted RO, it stays RW and it is not possible to
> remount it
> RO manually. And lsof has been retired...
> 
> Is there any people, who like me used root FS read only, and are now
> in
> trouble ?
> 
> Is there a way to use OpenBSD 6.4 resilient to power outage without
> UPS
> when root FS is mounted RW ? I am ready to use memory filesystem for
> /var
> and /var/log.
> 
> Or, is there a simple way to use root FS RO with OpenBSD 6.4 and
> above ?
> 
-- 
Jarkko Oranen <[email protected]>

Reply via email to