Page MenuHomeFreeBSD

nanobsd: Restore boot0cfg functionality
AcceptedPublic

Authored by jlduran on Thu, May 28, 6:40 PM.
Tags
None
Referenced Files
F160043907: D57311.id178869.diff
Sat, Jun 20, 8:53 PM
F160043870: D57311.id178869.diff
Sat, Jun 20, 8:52 PM
Unknown Object (File)
Sun, Jun 14, 1:20 AM
Unknown Object (File)
Fri, Jun 12, 12:41 AM
Unknown Object (File)
Sun, Jun 7, 1:04 PM
Unknown Object (File)
Sun, Jun 7, 1:01 PM
Unknown Object (File)
Sat, Jun 6, 4:30 PM
Unknown Object (File)
Sat, Jun 6, 4:25 PM
Subscribers

Details

Summary

The need for this step is fading, now is mostly used to allow the
selection of just the two code partitions in the boot0 boot manager,
instead of the default of allowing all four MBR slices (the other two
being cfg and data, which cannot boot).

Test Plan

Add back NANO_BOOT0CFG functionality.
Before:

Booting from Hard Disk..
1  FreeBSD
2  FreeBSD
3  FreeBSD <-- HERE: this is not a bootable slice, this is /cfg, the default mask 0x3 should prevent it from appearing in the menu
F6  PXE
Boot:  1 .

After:

Booting from Hard Disk..
1  FreeBSD
2  FreeBSD
F6  PXE
Boot:  1 .

Also, should address https://lists.freebsd.org/pipermail/freebsd-embedded/2014-January/002222.html

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

boot0cfg ${NANO_BOOT0CFG} ${NANO_WORLDDIR}/${NANO_BOOTLOADER} doesn't look right. The only bare arg to boot0cfg is the disk, right?
The other one looks good though.

In D57311#1313282, @imp wrote:

boot0cfg ${NANO_BOOT0CFG} ${NANO_WORLDDIR}/${NANO_BOOTLOADER} doesn't look right. The only bare arg to boot0cfg is the disk, right?

Yes! that is why I created D57310, I'm not sure if it's nonsense.

Doh! Of course. Thanks!

This revision is now accepted and ready to land.Thu, May 28, 9:23 PM

The files /boot/boot0 and /boot/boot0sio have 0444 permissions. chmod before when building unprivileged.

This revision now requires review to proceed.Fri, May 29, 1:16 AM
This revision is now accepted and ready to land.Fri, May 29, 1:50 AM