Add `-a minimal` to parted call to fix errors with some images

This commit is contained in:
Drew Bonasera 2018-02-03 17:38:31 -05:00
parent 54051ea2e3
commit eac933beb8
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ sleep 1
losetup -d "$loopback"
partnewsize=$(($minsize * $blocksize))
newpartend=$(($partstart + $partnewsize))
parted -s "$img" rm $partnum >/dev/null
parted -s -a minimal "$img" rm $partnum >/dev/null
parted -s "$img" unit B mkpart primary $partstart $newpartend >/dev/null
#Truncate the file