freebsd-nq/sys/boot/i386
Luigi Rizzo df52a87993 A number of small changes to make the 'save choice to disk' safer,
and re-enable it as default.

In particular:

+ re-enable the 'update' flag in the Makefile (of course!);

+ commit Warner's patch "orb $NOUPDATE,_FLAGS(%bp)"
  to avoid writing to disk in case of a timeout/default choice;

+ fix an off-by-one count in the partition scan code that would
  print the wrong name for unknown partitions;

+ unconditionally change the boot prompt to 'Boot:' instead of 'Default:'
  to make room for the extra code/checks/messages. Some of the changes
  listed below are also made to save space;

+ rearrange and fix comments for known partition types. Right now we
  explicitly recognise *BSD, Linux, FAT16 (type 6, used on many USB keys),
  NTFS (type 7), FAT32 (type 11).
  Depending on other options we also recognise Extended (type 5),
  FAT12 (type 1) and FAT16 < 32MB (type 4).

+ Add an entry "F6 PXE" when the code is built with -DPXE (which is
  a default now). Technically, F6 boots through INT18, so the prompt 'PXE'
  is a bit misleading. Unfortunately the name INT18
  is too long and does not fit in - we could use ROM perhaps.
  The reason I picked 'PXE' is that on many (I believe) new systems
  INT18 calls PXE.

Apart from the choice of the name for PXE/ROM/INT18, this should close
pending issues on the 1-sector boot0 code and we should be able to
move the code to RELENG_7 when it reopens.

No boot0cfg changes are necessary.

MFC after:	3 weeks
2008-12-30 09:40:50 +00:00
..
boot0 A number of small changes to make the 'save choice to disk' safer, 2008-12-30 09:40:50 +00:00
boot0ext
boot0sio
boot2 - Initialize the vm86 structure to a known-good state. Specifically, always 2008-08-08 19:41:20 +00:00
btx Remove now unused label. 2008-12-09 00:25:57 +00:00
cdboot Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
gptboot - Initialize the vm86 structure to a known-good state. Specifically, always 2008-08-08 19:41:20 +00:00
gptzfsboot Use full 64bit arithmetic when converting file offsets to block numbers - fixes 2008-12-17 18:12:01 +00:00
kgzldr NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
libfirewire MFp4: add FireWire/dcons support in loader for i386/amd64. 2007-05-29 14:35:57 +00:00
libi386 If we free the GPT partition list in bd_open_gpt() because of an error, don't 2008-11-19 16:04:07 +00:00
loader Fix building without ZFS (can't find library) 2008-11-18 03:55:55 +00:00
mbr
pmbr Add a note to indicate that these files do borrow in part from mbr.s and 2007-11-26 21:29:59 +00:00
pxeldr Revert the previous change and let PROBE_KEYBOARD function identical to -P 2008-04-09 17:59:17 +00:00
zfsboot Use full 64bit arithmetic when converting file offsets to block numbers - fixes 2008-12-17 18:12:01 +00:00
Makefile Fix amd64 build and re-enable gptzfsboot. 2008-11-22 14:24:55 +00:00
Makefile.inc Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00