2 Commits

Author SHA1 Message Date
Attila Lendvai
4cdb130d62 use OpenWrt 21.02.7 2023-10-22 23:49:24 +02:00
Attila Lendvai
2d4d07d2a1 decrease memory need of dd while erasing the partition table
this was leading to the OOM killer killing dd.
2023-10-22 21:53:06 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ BUILD=`readlink -f $BUILD`
### ###
### chose a release ### chose a release
### ###
RELEASE="21.02.0" RELEASE="21.02.7"
IMGBUILDER_NAME="openwrt-imagebuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64" IMGBUILDER_NAME="openwrt-imagebuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"
IMGBUILDER_DIR="${BUILD}/${IMGBUILDER_NAME}" IMGBUILDER_DIR="${BUILD}/${IMGBUILDER_NAME}"

View File

@@ -34,7 +34,7 @@ hasBigEnoughPendrive()
setupPendrivePartitions() setupPendrivePartitions()
{ {
# erase partition table # erase partition table
dd if=/dev/zero of=/dev/sda bs=1M count=1 dd if=/dev/zero of=/dev/sda bs=1k count=256
# sda1 is 'swap' # sda1 is 'swap'
# sda2 is 'root' # sda2 is 'root'