SVN: geninitrd/trunk/geninitrd
arekm
arekm at pld-linux.org
Sun Mar 2 22:14:13 CET 2008
Author: arekm
Date: Sun Mar 2 22:14:12 2008
New Revision: 9557
Modified:
geninitrd/trunk/geninitrd
Log:
Always tell what type of image is being generated.
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Sun Mar 2 22:14:12 2008
@@ -1999,6 +1999,8 @@
fi
IMAGE=$(mktemp -t initrd.img-XXXXXX) || die "mktemp failed"
+
+debug "Creating $INITRDFS image $IMAGE"
case "$INITRDFS" in
ext2)
IMAGESIZE=$(du -ks $DESTDIR | awk '{print int(($1+1023+512)/1024)*1024}')
@@ -2007,7 +2009,6 @@
warn "Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
fi
- debug "Creating ext2 image $IMAGE"
dd if=/dev/zero of="$IMAGE" bs=1k count="$IMAGESIZE" 2> /dev/null
mke2fs -q -F -b 1024 -m 0 "$IMAGE" 2>/dev/null 1>&2
tune2fs -i 0 "$IMAGE" >/dev/null 2>&1
@@ -2025,7 +2026,6 @@
;;
rom|romfs)
- debug "Generating romfs image: $IMAGE"
genromfs -f "$IMAGE" -d "$DESTDIR" -V "PLD initrd for kernel $kernel"
IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023)/1024)*1024}')
debug "Image size for romfs: ${IMAGESIZE}KiB ($IMAGE)"
More information about the pld-cvs-commit
mailing list