mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-24 08:51:40 -04:00
macOS example uses 'iso_urls' to upload "preseed" image dynamically
This commit is contained in:
@@ -30,10 +30,13 @@
|
||||
|
||||
"iso_paths": [
|
||||
"[datastore-mac] ISO/macOS 10.13.3.iso",
|
||||
"[datastore-mac] ISO/setup.iso",
|
||||
"[datastore-mac] ISO/VMware Tools/10.2.0/darwin.iso"
|
||||
],
|
||||
|
||||
"iso_urls": ["{{template_dir}}/setup/out/setup.iso"],
|
||||
"iso_checksum_type": "sha256",
|
||||
"iso_checksum_url": "file:///{{template_dir}}/setup/out/sha256sums",
|
||||
|
||||
"boot_wait": "4m",
|
||||
"boot_command": [
|
||||
"<enter><wait5>",
|
||||
|
||||
@@ -23,3 +23,5 @@ productbuild --package out/postinstall.pkg out/iso/postinstall.pkg
|
||||
|
||||
rm -f out/setup.iso
|
||||
hdiutil makehybrid -iso -joliet -default-volume-name setup -o out/setup.iso out/iso
|
||||
cd out
|
||||
shasum -a 256 setup.iso >sha256sums
|
||||
|
||||
Reference in New Issue
Block a user