]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- show minimum ramdisk_size one could use for produced image :), just for statistics
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 10 Dec 2008 15:39:08 +0000 (15:39 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 10 Dec 2008 15:39:08 +0000 (15:39 +0000)
svn-id: @10033

geninitrd

index d64de55e015fa1cee56a96032974ce4ec973662e..bcd1f65fcca4a5748b49fda1547459b2ddf5a5af 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -2016,6 +2016,9 @@ else
        cp -a "$IMAGE" "$target"
 fi
 
+size=$(stat -c %s $target | awk '{print int((($1/1024)+1023)/1024)*1024}')
+debug "Minimum RAM size that could be used for $target is: ramdisk_size=$size"
+
 # XXX. check if bootsplash can output data to tmp dir not directly to initramfs image.
 if is_yes "$BOOT_SPLASH"; then
        initrd_gen_bootsplash "$target"
This page took 0.040739 seconds and 4 git commands to generate.