From 4043daef33746d74e41f8686e24b73240aa70ca7 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 1 Dec 2011 10:24:20 -0600 Subject: [PATCH] cleanup: boot partition format Signed-off-by: Robert Nelson --- mk_mmc.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 78c6523..d6c356e 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -874,10 +874,6 @@ if [ "$FDISK_DEBUG" ];then fdisk -l ${MMC} echo "-----------------------------" fi - - echo "Formating Boot Partition" - echo "-----------------------------" - mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} } function dd_uboot_before_boot_partition { @@ -891,11 +887,12 @@ function dd_uboot_before_boot_partition { echo "-----------------------------" parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 10 100 #parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext3 10 100 +} +function format_boot_partition { echo "Formating Boot Partition" echo "-----------------------------" mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} - #mkfs.ext3 ${MMC}${PARTITION_PREFIX}1 -L ${BOOT_LABEL} } function create_partitions { @@ -906,6 +903,8 @@ else uboot_in_boot_partition fi + format_boot_partition + mkdir ${TEMPDIR}/disk mount ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk