Author: glen
Date: Fri Oct 27 16:27:02 2006
New Revision: 7899

Modified:
   geninitrd/trunk/geninitrd
Log:
- add one 512b for ext2 fs (room for filesystem header)

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Fri Oct 27 16:27:02 2006
@@ -1474,7 +1474,7 @@
 
 case "$INITRDFS" in
        ext2)
-               IMAGESIZE=$(du -ks $MNTPOINT | awk '{print 
int(($1+1023)/1024)*1024}')
+               IMAGESIZE=$(du -ks $MNTPOINT | awk '{print 
int(($1+1023+512)/1024)*1024}')
                debug   "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

Reply via email to