Don't use the 'c' partition for mounting root. A disklabel is very

likely not present under the simulator. If multiple partitions are
present on the virtual disk, then the 'a' partition would be the
most logical choice. Nowadays partitions are GPT based, which would
make the assumption of a disklabel even more questionable. Given
all the possible scenarios, assuming a raw "device" seems best.
This commit is contained in:
Marcel Moolenaar 2003-02-03 01:10:01 +00:00
parent ca380469a2
commit 871a64fdf0

View File

@ -253,8 +253,7 @@ static void
ssc_takeroot(void *junk)
{
if (sscrootready)
rootdevnames[0] = "ufs:/dev/sscdisk0c";
rootdevnames[0] = "ufs:/dev/sscdisk0";
}
SYSINIT(ssc_root, SI_SUB_MOUNT_ROOT, SI_ORDER_FIRST, ssc_takeroot, NULL);