[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-commits
Subject:    git: mkinitrd(8): determine the initrd size from the contents size
From:       aly () crater ! dragonflybsd ! org (Aaron LI)
Date:       2018-03-30 7:39:20
Message-ID: 20180330073920.129A4B2B901D2E () crater ! dragonflybsd ! org
[Download RAW message or body]


commit eeb035f875d0cb79c54938cc9ae8858344059cd1
Author: Aaron LI <aly@aaronly.me>
Date:   Fri Mar 30 14:32:59 2018 +0800

    mkinitrd(8): determine the initrd size from the contents size
    
    * Calculate the contents size to determine the required initrd size.
    
      The used initrd size is determined from the total contents size, rounded up
      to align with 1 MiB, added additional 1 MiB.
    
      The calculated initrd size is 12 MiB at the moment, so we have 3 MiB
      more usable memory now (compared to the fixed 15 MiB before).
    
    * Add options "-s" to specify the required initrd size as before.  But a check
      against the above determined required initrd size is performance to avoid the
      out-of-space error, resulting in a broken initrd image.
    
    * Add option "-S" to constrain the allowed maximum initrd size, because a too
      big initrd image will also lead to boot failure, due to the boot loader
      limitation.
    
    * Some minor cleanups and improvements, better error handle and messages.
    
    * Update the mkinitrd.conf and man page accordingly.
    
    Reviewed-by: zrj

Summary of changes:
 etc/defaults/mkinitrd.conf |   4 +-
 sbin/mkinitrd/mkinitrd.8   |  48 +++++++++++++++++----
 sbin/mkinitrd/mkinitrd.sh  | 101 ++++++++++++++++++++++++++++++++++++---------
 3 files changed, 124 insertions(+), 29 deletions(-)

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


-- 
DragonFly BSD source repository
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic