summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@su.local>2009-09-10 18:51:25 -0400
committerScott Ullrich <sullrich@su.local>2009-09-10 18:51:25 -0400
commit80682f553fdf67bf3183d6100a2d0389cec8521c (patch)
tree2c3264da8923faa82bc14f97bc3056354f0ca69f /etc/rc.firmware
parent7335c4cf606a854af2c6d45f10eb7695bedb35d7 (diff)
downloadpfsense-80682f553fdf67bf3183d6100a2d0389cec8521c.zip
pfsense-80682f553fdf67bf3183d6100a2d0389cec8521c.tar.gz
Add 1 meg to on size disk image
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 18b794b..e0dcbf5 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"
echo "Upgrade failed. Please check the system log file for more information" | wall
OpenPOWER on IntegriCloud