Author: glen
Date: Thu Oct 19 15:44:26 2006
New Revision: 7877
Modified:
geninitrd/trunk/geninitrd
Log:
Round ext2 imagesize up to 1024 blocks.
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Thu Oct 19 15:44:26 2006
@@ -1445,7 +1445,7 @@
case "$INITRDFS" in
ext2)
- IMAGESIZE=$(du -ks $MNTPOINT | awk '{print $1 + 512}')
+ IMAGESIZE=$(du -ks $MNTPOINT | awk '{print
int(($1+1023)/1024)*1024}')
[ "$verbose" ] && echo "ext2 image size: $IMAGESIZE ($MNTPOINT)"
if [ "$IMAGESIZE" -gt 4096 ]; then
echo >&2 "$0: Your image size is larger than 4096, You
should add ramdisk_size=$IMAGESIZE to your kernel commandline!"
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit