boot - Fix boot probe ordering
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 12 Aug 2012 00:09:11 +0000 (17:09 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 12 Aug 2012 00:09:11 +0000 (17:09 -0700)
commit33e7016e98de066369630bbe66bf25d5262eceff
treef312192ee90825b0d806a60a32cf1d38e7485e58
parentd6a023778e09222606cf6078767ddf14b2b84a0a
boot - Fix boot probe ordering

* When boot loader support is compiled w/ UFS and HAMMER together, which
  is the default (note: HAMMER booting's never worked well)... the probe
  order was to check for the hammer volume header first and UFS second.

* Change the probe order to check for UFS first and HAMMER second.  The
  reason is that a 'newfs' (for UFS) doesn't wipe the hammer volume header
  because the ufs's newfs tries to 'skip' the partition reserved area of
  the disk.

  This is a huge throwback to the original BSD fdisk/disklabel which put
  the boot code INSIDE the 'a' partition.

* The DragonFly disklabel64 (which is now the default) does not have this
  problem so we could probably at some point adjust the UFS 'newfs' code to
  wipe the old 'reserve' area to really put a cap on the problem.

Reported-by: tuxillo
sys/boot/pc32/boot2/boot2.c