about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index 1dee456..5729c9d 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -136,7 +136,6 @@ truncate -s "${IMGSIZE}" $FILENAME >/dev/null 2>&1
 ROOTFSDIR=$(mktemp -d)
 
 info_msg "Creating disk image partitions/filesystems ..."
-parted $FILENAME mktable msdos
 if [ "$BOOT_FSTYPE" = "vfat" ]; then
     _btype="fat32"
     _args="-I -F16"
@@ -144,6 +143,7 @@ fi
 case "$PLATFORM" in
 cubieboard2|cubietruck|ci20*)
     sfdisk ${FILENAME} <<_EOF
+label: dos
 2048,,L
 _EOF
     LOOPDEV=$(losetup --show --find --partscan $FILENAME)
@@ -153,6 +153,7 @@ _EOF
     ;;
 *)
     sfdisk ${FILENAME} <<_EOF
+label: dos
 2048,${BOOT_FSSIZE},b
 ${BOOT_SIZE},+,L,*
 _EOF