git: mkinitrd(8): Fix a wrong variable name, and more improvements

Aaron LI aly at crater.dragonflybsd.org
Fri Mar 30 19:47:19 PDT 2018


commit 9559adf5dcb595ff6d7f53b7845b0e7829eed322
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Mar 31 10:37:53 2018 +0800

    mkinitrd(8): Fix a wrong variable name, and more improvements
    
    * Fix the wrong variable name 'CONTENT_DIR' to be 'CONTENT_DIRS', which is
      used in the configuration file as well as this tool.
    
    * Add a function check_dirs() to check the existence of directories.
    
    * Append the PID to the temporary build directory to make it unique.
    
    * Remove the temporary build directory after use.
    
    * Backup the old initrd.img.gz before copy the new one over.

Summary of changes:
 sbin/mkinitrd/mkinitrd.sh | 46 ++++++++++++++++++++++++++++++++++------------
 1 file changed, 34 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9559adf5dcb595ff6d7f53b7845b0e7829eed322


-- 
DragonFly BSD source repository


More information about the Commits mailing list