#! /bin/sh
#
# update-step-2
#
# Erase the previous content of the first sectors of the partition to update.
#
# Logilin 2020 - All right reserved.

PARTITION_NAME_FILE="/tmp/partition"

partition=$(cat "${PARTITION_NAME_FILE}")

if ! /bin/dd if=/dev/zero  of="${partition}" bs=1M count=32
then
	echo "Unable to wipeout ${partition}." >&2
	exit 1
fi

exit 0
