mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add 1 meg to on size disk image
This commit is contained in:
parent
ae342f4779
commit
c126b54875
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user