[readonly/geninitrd: 432/1068] - no extra 512b needed for romfs
draenog
draenog at pld-linux.org
Sat Nov 2 19:48:41 CET 2013
commit cdf1e7c918eac583d276bbb398de5b2c552beee9
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Oct 5 22:38:57 2007 +0000
- no extra 512b needed for romfs
svn-id: @8790
geninitrd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index fcd2ec0..67a9bd7 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1534,7 +1534,7 @@ case "$INITRDFS" in
;;
rom)
genromfs -f "$IMAGE" -d "$MNTPOINT" -V "PLD initrd for kernel $kernel"
- IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023+512)/1024)*1024}')
+ IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023)/1024)*1024}')
debug "romfs image size: $IMAGESIZE ($IMAGE)"
if [ "$IMAGESIZE" -gt 4096 ]; then
echo >&2 "$PROGRAM: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list