From 16fc4a46ea47d873dd0e28802831a688aba1f91c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 12 Jul 2013 10:55:30 -0500 Subject: [PATCH] fdisk: nuke no longer used to create partitions Signed-off-by: Robert Nelson --- mk_mmc.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index ac3ab82..092c1a2 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -114,14 +114,6 @@ detect_software () { echo "" exit fi - - #Check for gnu-fdisk - #FIXME: GNU Fdisk seems to halt at "Using /dev/xx" when trying to script it.. - if fdisk -v | grep "GNU Fdisk" >/dev/null ; then - echo "Sorry, this script currently doesn't work with GNU Fdisk." - echo "Install the version of fdisk from your distribution's util-linux package." - exit - fi } local_bootloader () { @@ -1127,36 +1119,6 @@ unmount_all_drive_partitions () { sync } -fatfs_boot_error () { - echo "Failure: [parted --script ${MMC} set 1 boot on]" - exit -} - -fdisk_boot_partition () { - #Generic boot partition created by fdisk - echo "" - echo "Using fdisk to create BOOT partition" - echo "-----------------------------" - - fdisk ${MMC} <<-__EOF__ - n - p - 1 - - +${conf_boot_endmb}M - t - e - p - w - __EOF__ - - sync - - echo "Setting Boot Partition's Boot Flag" - echo "-----------------------------" - LC_ALL=C parted --script ${MMC} set 1 boot on || fatfs_boot_error -} - sfdisk_boot_partition () { #Generic boot partition created by sfdisk echo ""