Jump to content

Mutiple OSX partitions: Which com.apple.Boot.plist used by Darwin?


1 post in this topic

Recommended Posts

When the Darwin boot loader gets the boot options from com.apple.Boot.plist, which one would it use in case of multiple OSX installations on the same hard drive?

 

I found this in the boot loader's source code:

 

BVRef selectBootVolume( BVRef chain )
{
BVRef bvr, bvr1 = 0, bvr2 = 0;

for ( bvr = chain; bvr; bvr = bvr->next )
{
	if ( bvr->flags & kBVFlagNativeBoot ) bvr1 = bvr;
	if ( bvr->flags & kBVFlagPrimary )	bvr2 = bvr;
}

bvr = bvr2 ? bvr2 :
	  bvr1 ? bvr1 : chain;

return bvr;
}

 

So (if this is the right place in the code), it's clear that it will prefer a "primary" partition over a "native" partition.

 

But there is no break in the for condition, and it starts scanning from "chain" until the end of the partition list. So does that mean it would take the last suitable partition found in that list?

×
×
  • Create New...