summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-09-10 18:50:55 -0400
committerScott Ullrich <sullrich@su.local>2009-09-10 18:50:55 -0400
commitc126b54875edf36eb53b832863debbc0d1c5b1bc (patch)
tree33c8e48db2a04f26785c75194c0bf14dedb972e6
parentae342f4779c0c7d1223da7416c9d2861b435f963 (diff)
downloadpfsense-c126b54875edf36eb53b832863debbc0d1c5b1bc.zip
pfsense-c126b54875edf36eb53b832863debbc0d1c5b1bc.tar.gz
Add 1 meg to on size disk image
-rwxr-xr-xetc/rc.firmware1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 5790620..59c3182 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -197,6 +197,7 @@ pfSenseNanoBSDupgrade)
# slice that we are going to be operating on.
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`
+ SIZE=`expr $SIZE + 1`
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 on disk: $SIZE < Size of new image: $NEW_IMG_SIZE"
rm -f /var/run/firmwarelock.dirty
OpenPOWER on IntegriCloud