Reduce macOS image size
Having a DMG also allows us to use dmg2img to convert into a raw HFS+ image. That image can be applied to a partition using dd under Linux.
This commit is contained in:
parent
20fe08dbb4
commit
f1592b92a6
1 changed files with 1 additions and 0 deletions
|
|
@ -125,4 +125,5 @@ hdiutil detach "${WK_IMAGE_DEV}"
|
|||
|
||||
# Convert to compressed read-only image
|
||||
echo "Converting to read-only image..."
|
||||
hdiutil resize -sectors min "${OUT_NAME}.sparsebundle"
|
||||
hdiutil convert -format UDZO -o "${OUT_NAME}.dmg" "${OUT_NAME}.sparsebundle"
|
||||
|
|
|
|||
Loading…
Reference in a new issue