Re: boot0cfg -s vs. GEOM_PART_*?

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Sat, 21 Feb 2009 10:48:22 -0800
On Feb 21, 2009, at 12:25 AM, Bjoern A. Zeeb wrote:

> Thanks. I see boot0cfg no longer errors but I am not sure if it does
> the right thing:
>
> boot0cfg -s 5 ad0
> (doesn't atter if it's 0 or 2 to the -s options) as

boot0cfg -s doesn't set the active flag on partitions. It
changes some magic offset in the boot code that is being
interpreted by the boot code.

> That leaves me to the question - what's the boot0cfg -s5 equivalent
> with gpart?

There's no equivalent to the -s option, because gpart doesn't
interpret or understand the boot code. You can change the
active partition with gpart though:

	# gpart set -a active -i <slice> ad0

FYI,

-- 
Marcel Moolenaar
xcllnt_at_mac.com
Received on Sat Feb 21 2009 - 17:48:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC