diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-10 18:29:46 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-10 18:29:46 -0400 |
commit | 5d15e968791c5d1ae538080bdb61a674b9051c7f (patch) | |
tree | c184a9374c13c8f1236539b225eaed9a13337e03 /etc/rc.firmware | |
parent | d2d86ca3a71515aef81edb1abb26109584c4b0d1 (diff) | |
download | pfsense-5d15e968791c5d1ae538080bdb61a674b9051c7f.zip pfsense-5d15e968791c5d1ae538080bdb61a674b9051c7f.tar.gz |
Show what each of the numbers are during a upgrade size failure check
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-x | etc/rc.firmware | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index ae472d6..d391e46 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" + 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" echo "Upgrade failed. Please check the system log file for more information" | wall rm /var/run/firmwarelock.dirty /etc/rc.conf_mount_ro |