Add `-a minimal` to parted call to fix errors with some images
This commit is contained in:
parent
54051ea2e3
commit
eac933beb8
|
@ -169,7 +169,7 @@ sleep 1
|
||||||
losetup -d "$loopback"
|
losetup -d "$loopback"
|
||||||
partnewsize=$(($minsize * $blocksize))
|
partnewsize=$(($minsize * $blocksize))
|
||||||
newpartend=$(($partstart + $partnewsize))
|
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
|
parted -s "$img" unit B mkpart primary $partstart $newpartend >/dev/null
|
||||||
|
|
||||||
#Truncate the file
|
#Truncate the file
|
||||||
|
|
Loading…
Reference in New Issue