OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: forcing system disk to wd0

From: Ted Unangst (ted.unangstgmail.com)
Date: Fri Sep 12 2008 - 12:37:10 CDT


On Thu, Sep 11, 2008 at 8:52 AM, Joseph A Borg <jacborgmac.com> wrote:
> 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.

The superblock for each filesystem does contain space for labels, it's
just that mount doesn't look at them. If somebody added some "put my
drives back where they were last time" code, it wouldn't be too hard.