NetBSD/sbin/disklabel
dyoung 6f3106eba2 Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET
environment variables to override the sector number, and the
bytes-offset in the sector, where disklabel(8) writes a disklabel.

If disklabel(8) was compiled as a host tool, then the defaults
still come from the port's LABELOFFSET and LABELSECTOR #defines.
Otherwise, the defaults still come from the sysctls, kern.labelsector
and kern.labeloffset.

This change helps me create a bootable CompactFlash image with both
a Master Boot Record (MBR) and a BSD disklabel for the RouterBOARD
153.  The RB 153 is an evbmips board with a CompactFlash slot.  It
searches the MBR on a CompactFlash card for a partition containing
an ELF kernel.  When disklabel(8) is built for evbmips, it will
ordinarily overwrite an MBR with the BSD disklabel.
2007-06-05 21:48:46 +00:00
..
Makefile zaurus use MBR partition info. 2006-12-18 13:39:10 +00:00
disklabel.5 mark vinum as obsolete. 2006-02-25 01:55:00 +00:00
disklabel.8 As pointed out by James Wetterau, we wish to complement, as in the 2007-01-27 19:20:28 +00:00
dkcksum.c Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c 2005-06-12 19:18:34 +00:00
dkcksum.h
extern.h Add a '-l' flag and a 'L' command to interactive mode to list all known 2006-11-26 16:16:31 +00:00
interact.c Add a '-l' flag and a 'L' command to interactive mode to list all known 2006-11-26 16:16:31 +00:00
main.c Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET 2007-06-05 21:48:46 +00:00
pathnames.h
printlabel.c Oops, brain fart. PRIu32 should be "u", not "d". 2005-08-27 23:34:52 +00:00