From 2a284a711f8a5febba24a3340be4970522444b3c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 7 Feb 2011 12:41:50 -0600 Subject: [PATCH] let parted set boot flag over fdisk Signed-off-by: Robert Nelson --- mk_mmc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 109ac1a..0c4d9dd 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -372,7 +372,7 @@ NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l) sudo umount ${DRIVE} &> /dev/null || true done - sudo parted -s ${MMC} mklabel msdos + sudo parted --script ${MMC} mklabel msdos } function create_partitions { @@ -383,8 +383,6 @@ p 1 1 +64M -a -1 t e p @@ -393,6 +391,8 @@ END sync +sudo parted --script ${MMC} set 1 boot on + echo "" echo "Formating Boot Partition" echo ""