NetBSD/distrib/utils/sysinst/arch/bebox
garbled 85af130714 Rather big update to sysinst, in order to get it working on the prep port.
1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.
2006-04-05 16:55:01 +00:00
..
Makefile Move definition od SRCS into global Makefile.inc (crunchgen no longer needs 2005-02-19 17:00:38 +00:00
md.c Rather big update to sysinst, in order to get it working on the prep port. 2006-04-05 16:55:01 +00:00
md.h Make floppy install messages less confusing (maybe). 2006-02-26 10:25:52 +00:00
menus.md.en Move a couple of messages into msg.mbr.?? 2003-06-12 10:51:37 +00:00
menus.md.es Spanish menus translation, contributed by Ivan-Benjamin Garcia Tora 2005-08-26 15:44:43 +00:00
menus.md.fr Move a couple of messages into msg.mbr.?? 2003-06-12 10:51:37 +00:00
menus.md.pl Move a couple of messages into msg.mbr.?? 2003-06-12 10:51:37 +00:00
msg.md.de Delete a load of messages that aren't used in the current code, and that 2006-02-24 22:13:16 +00:00
msg.md.en Delete a load of messages that aren't used in the current code, and that 2006-02-24 22:13:16 +00:00
msg.md.es Delete a load of messages that aren't used in the current code, and that 2006-02-24 22:13:16 +00:00
msg.md.fr Delete a load of messages that aren't used in the current code, and that 2006-02-24 22:13:16 +00:00
msg.md.pl Delete a load of messages that aren't used in the current code, and that 2006-02-24 22:13:16 +00:00