config/release/create_installstick: wipe disk before writing new disklabel, umount any mounted partition first

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-08-19 00:43:44 +02:00
parent 080f785e2b
commit bd97bc2f91

View File

@ -56,8 +56,12 @@ echo "# Please read the instructions and use very carefully.. #"
echo "# #"
echo "#########################################################"
# (TODO) umount anything
umount $PART
# remove any partition on your drive
echo "writing new disklabel on $DISK (remove any partition)..."
dd if=/dev/zero of=$DISK bs=4096 count=1024
parted -s $DISK mklabel msdos
# create one partition