summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-09-10 18:30:05 -0400
committerScott Ullrich <sullrich@su.local>2009-09-10 18:30:05 -0400
commit595459a3fcb5d3230864463f4be9039601099b89 (patch)
tree87fa37a1f315d0107a894b10693a93888d2057ad
parent4fa1b0139a63c1a7747f3456f69cc740e1c23232 (diff)
downloadpfsense-595459a3fcb5d3230864463f4be9039601099b89.zip
pfsense-595459a3fcb5d3230864463f4be9039601099b89.tar.gz
Show what each of the numbers are during a upgrade size failure check
-rwxr-xr-xetc/rc.firmware2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 909415a..92b7f6d 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -198,7 +198,7 @@ pfSenseNanoBSDupgrade)
NEW_IMG_SIZE=`echo $((\`gzip -l ${IMG} | grep -v compressed | awk '{ print $2}'\` / 1024 / 1024))`
SIZE=`/sbin/fdisk ${COMPLETE_PATH} | /usr/bin/grep Meg | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d"(" -f2`
if [ "$SIZE" -lt "$NEW_IMG_SIZE" ]; then
- file_notice "UpgradeFailure" "Upgrade failed due to the upgrade image being larger than the partition that is configured on disk. Halting. $SIZE < $NEW_IMG_SIZE" echo "Upgrade failed. Please check the system log file for more information" | wall
+ file_notice "UpgradeFailure" "Upgrade failed due to the upgrade image being larger than the partition that is configured on disk. Halting. Size on disk: $SIZE < Size of new image: $NEW_IMG_SIZE"
rm /var/run/firmwarelock.dirty
/etc/rc.conf_mount_ro
exit 1
OpenPOWER on IntegriCloud