OpenBSD 3.8: read-only root with union /dev
I just installed OpenBSD 3.8 on a box that used to run 3.6. It used to have a read-only root with the following /dev line in /etc/fstab:
Code:
swap /dev mfs rw,noatime,union,-s=12000 0 0 Code:
mount_mfs: -o union: option not supported Thanks, Moy |
The 'ro' flag seems like a likely candidate ...
|
Thanks, sigsegv, but the question was about what do do after that :). Mounting / read-only makes /dev read-only, which messes up lots of things. This used to be solvable by union-mounting /dev and re-creating the necessary devices but that doesn't work as of 3.8.
A solution follows if anyone's interested. Basically, instead of mfs-union-mounting the whole of /dev, mfs-mount only the pieces that need to be read-write, create the necessary devices there, and create symlinks in /dev to point at the new devices. For example: Add the following line to /etc/fstab (and also make / ro): Code:
swap /dev/write mfs rw,noatime,-s=12000 0 0 Code:
# mkdir /dev/write Code:
( cd /dev/write; /dev/MAKEDEV wscons pty0; cd - ) > /dev/null 2>&1 Moy |
All times are GMT -5. The time now is 07:25 PM. |