When booting from CD, check cd1a and acd1a after cd0a and acd0a, allowing
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 4 Jul 2004 05:16:32 +0000 (05:16 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 4 Jul 2004 05:16:32 +0000 (05:16 +0000)
commit6b98993e95a7f4dac1a136576b62786981b51fc6
tree3b45cebac08139633d6c7e85cda6e8669a86dc3f
parentab5a0ec88ec848e62cfee49b7e557e7fcc474dac
When booting from CD, check cd1a and acd1a after cd0a and acd0a, allowing
a CD to be booted off of a second CDRom drive.

When checking for the same rootdev selection as already has been set,
only the major number of the existing rootdev was being checked.  This
prevent other unit numbers from being tried properly (e.g. trying cd1 after
having already tried cd0).

Completely parse the rootdev's (unit, slice, partition) tuple before
trying to look up the device, rather then assuming that devname(0,0,0)
will exist (this is no longer necessarily true).
sys/kern/vfs_conf.c
sys/kern/vfs_subr.c
sys/sys/conf.h