|
From: <ar...@sy...> - 2008-02-24 10:55:40
|
Author: arighi
Date: 2008-02-24 04:55:31 -0600 (Sun, 24 Feb 2008)
New Revision: 4400
Modified:
trunk/initrd_source/skel/etc/init.d/functions
Log:
- print image size on the console before starting imaging
This is useful for debugging and troubleshooting.
Modified: trunk/initrd_source/skel/etc/init.d/functions
===================================================================
--- trunk/initrd_source/skel/etc/init.d/functions 2008-02-23 23:34:33 UTC (rev 4399)
+++ trunk/initrd_source/skel/etc/init.d/functions 2008-02-24 10:55:31 UTC (rev 4400)
@@ -1770,7 +1770,7 @@
REPORT_INTERVAL=10
# Evaluate image size.
- logmsg "Evaluating image size."
+ logmsg "Evaluating image size..."
if [ ! "x$BITTORRENT" = "xy" ]; then
IMAGESIZE=`rsync -av $IMAGESERVER::$IMAGENAME | grep "total size" | sed -e "s/total size is \([0-9]*\).*/\1/"`
else
@@ -1785,6 +1785,7 @@
IMAGESIZE=`/bin/torrentinfo-console $torrent_file | sed -ne "s/file size\.*: \([0-9]*\) .*$/\1/p"`
fi
IMAGESIZE=`expr $IMAGESIZE / 1024`
+ logmsg " --> Image size = `expr $IMAGESIZE / 1024`MiB"
# Evaluate disks size.
LIST=`df 2>/dev/null | grep "/" | sed "s/ */ /g" | cut -d' ' -f3 | sed -ne 's/^\([0-9]*\)$/\1+/p'`0
|