git: initrd/mkinitrd.sh: Use 'du -t' to simplify size calculation

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 12 09:00:42 PDT 2020


commit 567f41d0d4858819ed504a528dd8fc96e8c76e06
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jun 12 23:57:01 2020 +0800

    initrd/mkinitrd.sh: Use 'du -t' to simplify size calculation
    
    The du(1)'s '-t' option calculates the apparent size, which is what we
    want here for determining the required size of the initrd image.  This
    saves us a shell function to do the same work.

Summary of changes:
 initrd/mkinitrd.sh | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/567f41d0d4858819ed504a528dd8fc96e8c76e06


-- 
DragonFly BSD source repository


More information about the Commits mailing list