This commit is contained in:
teldra 2022-02-08 19:00:25 +01:00
parent f8bd696ba5
commit 9f79f5043a

View File

@ -112,7 +112,7 @@ do_partition() {
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart root ext4 "$start" 100%
mkfs.vfat -I -F32 "${TARGET_PHY_ID}-part1"
TARGET_PART="2"
dd if=/dev/random of="${TARGET_PHY_ID}-part2" bs=512 count=4 > /dev/null 2>&1
dd if=/dev/random of="${TARGET_PHY_ID}-part2" bs=512 count=4
else
parted "${TARGET_PHY_ID}" -s -- mklabel msdos
sleep 2
@ -125,7 +125,7 @@ do_partition() {
TARGET_PART="2"
fi
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "$start" -1s
dd if=/dev/random of="${TARGET_PHY_ID}-part${TARGET_PART}" bs=512 count=4 > /dev/null 2>&1
dd if=/dev/random of="${TARGET_PHY_ID}-part${TARGET_PART}" bs=512 count=4
fi
sleep 2
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"