On Thu, Sep 11, 2008 at 8:52 AM, Joseph A Borg <[EMAIL PROTECTED]> wrote: > but i'll have to change it every time i add or remove a hard diskwhich can > be pretty frequent. > > if the total number of drives in the system is not the same from boot > to boot, i have to tweak fstab. > is it possible for a future update of OpenBSD to tweak fstab to take > references to the boot drive? that should help a lot in such cases. I > could spout a lot of ideas, like having a unique identifier > (combination of timestamp and netcard/cpu id?) in the boot block for > reference in fstab, but i'm no expert.
Maybe a stupid idea: Could you hack /etc/rc to add a tiny script that reads the last line of dmesg to find where the root disk is and then rewrites fstab dynamically before `mount -a` gets run? I have OpenBSD on a thumbdrive that will be sd0 typically unless there are other thumbdrives/SATA drives plugged into the system I happen to be booting on and so I considered this but wasn't bold enough to edit rc -Nick