about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2016-04-29 14:17:49 +0200
committerJuan RP <xtraeme@voidlinux.eu>2016-04-29 14:17:49 +0200
commitd6f949d6403b309aa918e2779b8efe920935a7ae (patch)
treee2fac1425acbba7c59788ef985d5ee38ad3b3446
parent7e21c2f151b4363ae1704306125b495ab528c2cd (diff)
downloadhrmpf-d6f949d6403b309aa918e2779b8efe920935a7ae.tar.gz
hrmpf-d6f949d6403b309aa918e2779b8efe920935a7ae.tar.xz
hrmpf-d6f949d6403b309aa918e2779b8efe920935a7ae.zip
mkimage: get rid of parted completely (missed this in previous).
-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