SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Wed Dec 10 16:39:08 CET 2008
Author: glen
Date: Wed Dec 10 16:39:08 2008
New Revision: 10033
Modified:
geninitrd/trunk/geninitrd
Log:
- show minimum ramdisk_size one could use for produced image :), just for statistics
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Wed Dec 10 16:39:08 2008
@@ -2016,6 +2016,9 @@
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"
More information about the pld-cvs-commit
mailing list