summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-02-01 17:38:13 -0200
committerRenato Botelho <renato@netgate.com>2016-02-01 17:38:13 -0200
commit7d9c553c917c92e816178ba63c5a50cb1a3b9d74 (patch)
tree2a8d715a102e5d08bde061de192b6cc665e1f636 /tools
parentec3371678b60de82ada14716b6ef272d1f51776c (diff)
downloadpfsense-7d9c553c917c92e816178ba63c5a50cb1a3b9d74.zip
pfsense-7d9c553c917c92e816178ba63c5a50cb1a3b9d74.tar.gz
Remove support for nanobsd images < 2gb. Fixes #5836
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_snapshots.sh2
-rw-r--r--tools/builder_common.sh3
-rw-r--r--tools/builder_defaults.sh2
3 files changed, 2 insertions, 5 deletions
diff --git a/tools/build_snapshots.sh b/tools/build_snapshots.sh
index 87d101d..5297d17 100755
--- a/tools/build_snapshots.sh
+++ b/tools/build_snapshots.sh
@@ -185,7 +185,7 @@ while [ /bin/true ]; do
snapshot_update_status "${LINE}"
done
- (${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '1g 2g 4g' \
+ (${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '2g 4g' \
--snapshots 2>&1) | while read -r LINE; do
snapshot_update_status "${LINE}"
done
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 7b81bdc..82f1420 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -490,9 +490,6 @@ nanobsd_set_flash_details () {
# NB: notice math error in SDCFJ-4096-388 line.
#
case "${a1}" in
- 1024|1024m|1024mb|1g)
- NANO_MEDIASIZE=$((997129216/512))
- ;;
2048|2048m|2048mb|2g)
NANO_MEDIASIZE=$((1989999616/512))
;;
diff --git a/tools/builder_defaults.sh b/tools/builder_defaults.sh
index eb0e173..70ee8d0 100644
--- a/tools/builder_defaults.sh
+++ b/tools/builder_defaults.sh
@@ -224,7 +224,7 @@ export NANO_IMAGES=2
# 1 -> Initialize second image with a copy of the first
export NANO_INIT_IMG2=1
export NANO_NEWFS="-b 4096 -f 512 -i 8192 -O1"
-export FLASH_SIZE=${FLASH_SIZE:-"1g"}
+export FLASH_SIZE=${FLASH_SIZE:-"2g"}
# Size of code file system in 512 bytes sectors
# If zero, size will be as large as possible.
export NANO_CODESIZE=0
OpenPOWER on IntegriCloud