tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: "dynamic" fstab
I use "from_mount" in the fs_spec column of /etc/fstab. This is documented
in mount(8), but not in fstab(5). /etc/rc.d/fsck_root does not know how to
deal with that, but I have an unusual setup and use "0" in the fs_passno
column to suppress fsck_root.
Yes I actually use 0 for fs_passno anyway as the rw mount forbids fsck
to check the root fs.
I'd suggest modifying /etc/rc.d/fsck_root to look for fs_spec="from_mount"
flag, and use sysctl kern.root_device in that case. It does not have to edit
/etc/fstab; it just has to pass the correct device name to fsck(8). We
could/should also modify fsck(8) to understand fs_spec="from_mount".
ha! that's cleaner indeed, thanks for the hint :)
------------------------------------------------------------------
Emile "iMil" Heitor .°. <imil@{home.imil.net,NetBSD.org,gcu.info}>
_
| http://imil.net | ASCII ribbon campaign ( )
| http://www.NetBSD.org | - against HTML email X
| http://gcu.info | & vCards / \
Home |
Main Index |
Thread Index |
Old Index