NetBSD/distrib/utils/sysinst
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
..
arch Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
Makefile Delete more messages that are never output 2003-06-06 18:57:13 +00:00
Makefile.inc No need to build sysinstmsgs.en (they are compiled into the program). 2003-08-27 10:23:53 +00:00
SPELLING.en filesystem -> file system 2002-07-29 02:51:07 +00:00
TODO remove setting root's shell, as this was addressed in install/17676. 2002-08-27 00:22:53 +00:00
aout2elf.c use bounded string op 2003-08-06 13:56:58 +00:00
bsddisklabel.c Include '+' in default for partition size. 2003-09-27 10:16:33 +00:00
defs.h Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
disks.c Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
disks_lfs.c
endian.h Another pass of the rototiller. Mainly: 2003-07-07 12:30:19 +00:00
factor.c pass lint[pass1] 2003-01-10 20:00:27 +00:00
geom.c Another pass of the rototiller. Mainly: 2003-07-07 12:30:19 +00:00
install.c Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
label.c Let noexec, nodev and nosuid be written to /ets fstab entries 2003-08-10 14:51:48 +00:00
main.c Remove extra process and pipe that relayed data from the master pty 2003-07-28 11:32:21 +00:00
mbr.c Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
mbr.h Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
menus.mbr When writing /etc/fstab: 2003-08-05 13:35:26 +00:00
menus.mi make main menu sit below initial text. 2003-09-27 10:42:16 +00:00
msg.mbr.en Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
msg.mbr.fr Fix code that guesses bios geometry from mbr info. 2003-07-14 09:59:00 +00:00
msg.mbr.pl Fix code that guesses bios geometry from mbr info. 2003-07-14 09:59:00 +00:00
msg.mi.en Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
msg.mi.fr Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
msg.mi.pl Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
msg_xlat.sh Remove some messages that are not used and are unliklely to be needed. 2003-07-07 21:26:32 +00:00
net.c return type of sizeof() is size_t not long. 2003-08-10 08:28:09 +00:00
run.c Just convert \r\n to \n\r when relaying program output. 2003-09-27 10:38:05 +00:00
savenewlabel.c Force localfs_dir to be an absolute path - fixes PR install/14130. 2003-07-27 08:57:27 +00:00
sizemultname.c A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did 2003-06-16 19:42:13 +00:00
target.c Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
txtwalk.c Sprinkle a load of consts, and change a few variable names. 2003-07-25 08:26:21 +00:00
txtwalk.h Sprinkle a load of consts, and change a few variable names. 2003-07-25 08:26:21 +00:00
unif.awk fix incomplete $id$, delete clause 3 2003-08-30 21:54:42 +00:00
upgrade.c Use new kern.root_partition sysctl to find out whether we are installing 2003-09-27 10:47:17 +00:00
util.c use bounded string op 2003-08-06 13:56:58 +00:00