banana-pi: Fix parted patch to image file

This commit is contained in:
Steev Klimaszewski
2020-07-17 21:23:15 -05:00
parent 8a75865872
commit 9da78ae712

View File

@@ -286,8 +286,8 @@ raw_size=$((${free_space}+${rootsize}+${bootstart}))
# Create the disk and partition it
dd if=/dev/zero of=${basedir}/${imagename}.img bs=1KiB count=0 seek=${raw_size} && sync
parted ${imagename}.img --script -- mklabel msdos
parted ${imagename}.img --script -- mkpart primary ext3 1MiB 100%
parted "${basedir}"/${imagename}.img --script -- mklabel msdos
parted "${basedir}"/${imagename}.img --script -- mkpart primary ext3 1MiB 100%
# Set the partition variables
loopdevice=`losetup -f --show "${basedir}"/${imagename}.img`