mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-01-23 02:14:40 +00:00
Merge pull request #79 from JuliusLongmind/master
Fixed some small bugs
This commit is contained in:
commit
9019e7568e
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"variables": {
|
||||
"iso_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/archlinux-{{isotime \"2006.01\"}}.01-x86_64.iso",
|
||||
"iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/{{isotime \"2006.01\"}}.01/sha1sums.txt",
|
||||
"iso_url": "https://mirrors.kernel.org/archlinux/iso/latest/archlinux-x86_64.iso",
|
||||
"iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/latest/sha256sums.txt",
|
||||
"ssh_timeout": "20m",
|
||||
"country": "US",
|
||||
"write_zeros": "true",
|
||||
|
|
|
|||
|
|
@ -278,8 +278,8 @@ else
|
|||
country='US'
|
||||
fi
|
||||
|
||||
ISO_CHECKSUM_URL="${MIRROR}/iso/latest/sha1sums.txt"
|
||||
ISO_NAME=$(curl -sL "$ISO_CHECKSUM_URL" | awk '/-x86_64.iso/{ print $2 }')
|
||||
ISO_CHECKSUM_URL="${MIRROR}/iso/latest/sha256sums.txt"
|
||||
ISO_NAME=$(curl -sL "$ISO_CHECKSUM_URL" | awk '/-x86_64.iso/{ print $2 }' | tail -n 1)
|
||||
ISO_URL="${MIRROR}/iso/latest/${ISO_NAME}"
|
||||
|
||||
if [[ $timeout ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue