SVN: geninitrd/trunk/geninitrd

glen glen at pld-linux.org
Fri Oct 27 16:27:04 CEST 2006


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!"


More information about the pld-cvs-commit mailing list