mkimage: get rid of parted completely (missed this in previous).

This commit is contained in:
Juan RP 2016-04-29 14:17:49 +02:00
parent 7e21c2f151
commit d6f949d640
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,6 @@ truncate -s "${IMGSIZE}" $FILENAME >/dev/null 2>&1
ROOTFSDIR=$(mktemp -d) ROOTFSDIR=$(mktemp -d)
info_msg "Creating disk image partitions/filesystems ..." info_msg "Creating disk image partitions/filesystems ..."
parted $FILENAME mktable msdos
if [ "$BOOT_FSTYPE" = "vfat" ]; then if [ "$BOOT_FSTYPE" = "vfat" ]; then
_btype="fat32" _btype="fat32"
_args="-I -F16" _args="-I -F16"
@ -144,6 +143,7 @@ fi
case "$PLATFORM" in case "$PLATFORM" in
cubieboard2|cubietruck|ci20*) cubieboard2|cubietruck|ci20*)
sfdisk ${FILENAME} <<_EOF sfdisk ${FILENAME} <<_EOF
label: dos
2048,,L 2048,,L
_EOF _EOF
LOOPDEV=$(losetup --show --find --partscan $FILENAME) LOOPDEV=$(losetup --show --find --partscan $FILENAME)
@ -153,6 +153,7 @@ _EOF
;; ;;
*) *)
sfdisk ${FILENAME} <<_EOF sfdisk ${FILENAME} <<_EOF
label: dos
2048,${BOOT_FSSIZE},b 2048,${BOOT_FSSIZE},b
${BOOT_SIZE},+,L,* ${BOOT_SIZE},+,L,*
_EOF _EOF