mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2025-12-23 18:50:09 +00:00
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…
x
Reference in New Issue
Block a user