Solved NanoBSD boot0cfg partition masking

On every nanobsd configuration i see this:
NANO_BOOT0CFG="-o packet -s 1 -m 3"

Why are we masking partition #3 here?
I can understand masking Linux or Windows partitions.
https://www.freebsd.org/cgi/man.cgi?query=boot0cfg&sektion=8
The -m mask option is displayed in hex so I might be getting confused.

This site has a good lowdown on the values. But he shows all hex code values.
https://dririan.com/2012/07/using-boot0cfg/

Is this the same: -m 0x3 as the -m 3 option I am using?

Maybe this is hiding the backup s2 slice? From the hex it looks like it hides s3 and s4
I could understanding hiding s2 as it may be marked active just like s1
 
I see what it does. If I don't use a boot0cfg m- option at all it still works.
But the menu shows all 4 slices. Only 2 are bootable.
F1
F2
F3
F4
So the -m option configures a mask for the boot0cfg menu and controls the boot order.

From my findings boot0cfg -m 3 is the same command as boot0cfg -m 0x3
So this lines up with the site above table of masks with s1 and s2 enabled and s3 and s4 disabled..
Where hex might be needed is the letters. Like 0xc. So a mask probably can't be boot0cfg -m c
 
Back
Top