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
disklabel.5
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
dkcksum.h
extern.h
interact.c
main.c Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET 2007-06-05 21:48:46 +00:00
pathnames.h
printlabel.c