Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
macOS example uses 'iso_urls' to upload "preseed" image dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuzmin committed Jan 5, 2019
1 parent acd07e5 commit 4586e8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/macos/macos-10.13.json
Original file line number Diff line number Diff line change
Expand Up @@ -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>",
Expand Down
2 changes: 2 additions & 0 deletions examples/macos/setup/iso-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4586e8d

Please sign in to comment.