[readonly/geninitrd: 431/1068] - more $PROGRAM usage
draenog
draenog at pld-linux.org
Sat Nov 2 19:48:36 CET 2013
commit 7758e45c82d895363cdce06ef4167c1a817a4c83
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Oct 5 22:36:42 2007 +0000
- more $PROGRAM usage
svn-id: @8789
geninitrd | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index c0817d6..fcd2ec0 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1518,7 +1518,7 @@ case "$INITRDFS" in
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, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
+ echo >&2 "$PROGRAM: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
fi
dd if=/dev/zero of="$IMAGE" bs=1k count="$IMAGESIZE" 2> /dev/null
@@ -1537,7 +1537,7 @@ case "$INITRDFS" in
IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023+512)/1024)*1024}')
debug "romfs image size: $IMAGESIZE ($IMAGE)"
if [ "$IMAGESIZE" -gt 4096 ]; then
- echo >&2 "$0: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
+ echo >&2 "$PROGRAM: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
fi
;;
cram)
@@ -1547,7 +1547,7 @@ case "$INITRDFS" in
(cd $MNTPOINT ; find . | cpio --quiet -H newc -o > "$IMAGE")
;;
*)
- echo "Filesystem $INITRDFS not supported by $0";
+ echo "Filesystem $INITRDFS not supported by $PROGRAM";
esac
if is_yes "$COMPRESS" ; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list