#! /bin/sh
#
# update-step-3
#
# Format the new partition to update.
#
# Logilin 2020 - All right reserved.

PARTITION_NAME_FILE="/tmp/partition"

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

if ! /sbin/mkfs.ext2 "${partition}"
then
	echo "Unable to format ${partition}" >&2
	exit 1
fi

exit 0
