git: DragonFly_RELEASE_5_4 initrd: Rework build and install stages

Aaron LI aly at crater.dragonflybsd.org
Sun Nov 25 05:43:21 PST 2018


commit cead61f61bc7ce39559505a3ec74a370c8b28254
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 24 18:52:03 2018 +0800

    initrd: Rework build and install stages
    
    * Rewrite the Makefile to provide only the 'all' and 'install' targets.
      Do not separate the handling of the rescue tools and initrd image.
      Thus greatly simplify the whole logic.
    
      The 'all' target will build the rescue tools and initrd contents, and
      does not require root priviledge, while the 'install' target will
      install the rescue tools to the system, create the initrd image and
      install it.
    
    * Update the top-level makefiles to call the new 'all' and 'install'.
      The 'buildworld' target now doesn't require root priviledge, same as
      before the refactoring in 9b724c0dcb2b9548a82d28d97e34375f64668669.
    
    * Only provide the 'initrd' top-level target to keep it simple.  This
      target will install the rescue tools and initrd image built by the
      'buildworld', overwriting the existing ones.
    
    * Clean up the nrelease/Makefile a bit, since 'installworld' will also
      install the rescue tools and initrd image in such a case.
    
    * Update the mkinitrd.sh script a bit.
    
    * Update the build(7) man page and clean up a bit.
    
    Reviewed-by: swildner

Summary of changes:
 Makefile               | 19 ++++------
 Makefile.inc1          | 59 ++++++++----------------------
 initrd/Makefile        | 98 ++++++++++++++++++++++++--------------------------
 initrd/mkinitrd.sh     | 11 +++---
 nrelease/Makefile      |  9 +++--
 share/man/man7/build.7 | 23 ++++++------
 6 files changed, 90 insertions(+), 129 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cead61f61bc7ce39559505a3ec74a370c8b28254


-- 
DragonFly BSD source repository



More information about the Commits mailing list