build - refactor rescue and initrd handling
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Oct 2018 01:33:57 +0000 (18:33 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 27 Oct 2018 01:40:27 +0000 (18:40 -0700)
commit9b724c0dcb2b9548a82d28d97e34375f64668669
tree9fb4d3d4dfe5cf6c530f4578287ee41839d7eb61
parentf57dbfa8fd2beb4db6bb5d16c73d3d5aea3ac6be
build - refactor rescue and initrd handling

* buildworld now builds the rescue directory tree and initrd
  image in /usr/obj.

* installworld will install the rescue and initrd stuff if it
  does not exist on the destination.  If rescue or initrd stuff
  is already installed, it is not overwritten.

* Add 'installrescue' and 'installinitrd' targets.  These will
  copy the rescue and initrd image built by buildworld.

* The normal 'rescue' and 'initrd' targets are unchanged and
  should build (from scratch) and install the rescue and initrd
  stuff.

* NOTE: crunchgen is currently hacked to add system paths when
  WORLDBUILD is defined, in order to access native binaries
  for 'uniq' and a few others, instead of building them in
  cross-tools.

  In particular, we have to use the native 'vnconfig' binary
  as building one in crosstools might not be compatible with
  the currently running system.  buildworld now uses 'vn' to
  create the initrd image.

  Possibly needs some work.
Makefile
Makefile.inc1
initrd/Makefile
initrd/Makefile.inc
initrd/mkinitrd.sh