forked from StefanScherer/packer-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
128f554
commit 45d2163
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/bin/bash | ||
mkdir -p ./tmp/10/ | ||
echo "Inserting license ..." | ||
sed -e "s/\<ProductKey\>/\<ProductKey\>\<Key\>$(pass windows_7_prof_license)\<\/Key\>/" ./answer_files/10/Autounattend.xml > ./tmp/10/Autounattend.xml | ||
diff ./answer_files/10/Autounattend.xml ./tmp/10/Autounattend.xml | ||
packer build --only=vmware-iso --var autounattend=./tmp/10/Autounattend.xml windows_10.json | ||
#packer build --only=vmware-iso --var iso_url=~/packer_cache/Win10_1511_English_x64.iso --var iso_checksum=875ec108288b9f581e5d8099cf0edb79f0f3e483 --var autounattend=./tmp/10/Autounattend.xml --var product_key=$(pass windows_7_prof_license) windows_10.json | ||
packer build --only=vmware-iso --var iso_url=~/packer_cache/Win10_1511_English_x64.iso --var iso_checksum=875ec108288b9f581e5d8099cf0edb79f0f3e483 --var autounattend=./tmp/10/Autounattend.xml windows_10.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters