From 3813602cdd89731ea57fd96f7f686736c84451f7 Mon Sep 17 00:00:00 2001 From: Dan Johansen Date: Mon, 22 Aug 2022 12:26:10 +0200 Subject: [PATCH] remove partitions before clearing the first 32 MB with dd Signed-off-by: Dan Johansen --- manjaro-arm-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manjaro-arm-installer b/manjaro-arm-installer index d78db66..ae23d33 100755 --- a/manjaro-arm-installer +++ b/manjaro-arm-installer @@ -289,13 +289,13 @@ prepare_card () { umount ${SDCARD}${SDDEV}1 1> /dev/null 2>&1 umount ${SDCARD}${SDDEV}2 1> /dev/null 2>&1 # Create partitions - #Clear first 32mb - dd if=/dev/zero of=${SDCARD} bs=1M count=32 1> /dev/null 2>&1 #remove previous partitions for v_partition in $(parted -s $SDCARD print|awk '/^ / {print $1}') do parted -s $SDCARD rm ${v_partition} 1> /dev/null 2>&1 done + #Clear first 32mb + dd if=/dev/zero of=${SDCARD} bs=1M count=32 1> /dev/null 2>&1 #partition with boot and root case "$DEVICE" in edgev|gsking-x|gtking-pro|oc2|on2|on2-plus|oc4|ohc4|pinephone|radxa-zero|rpi4|vim1|vim2|vim3)