Skip to content

Commit

Permalink
switch to the release iso url
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Jun 3, 2021
1 parent e994609 commit 47764ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variable "disk_size" {

variable "iso_url" {
type = string
default = "https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/hirsute-live-server-amd64.iso"
default = "https://releases.ubuntu.com/21.04/ubuntu-21.04-live-server-amd64.iso"
}

variable "iso_checksum" {
Expand Down
2 changes: 1 addition & 1 deletion update-iso-checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ gpg --keyid-format long --keyserver hkp://keyserver.ubuntu.com --recv-keys \
0x871920D1991BC93C
gpg --verify SHA256SUMS.gpg SHA256SUMS
iso_checksum=$(grep $iso_filename SHA256SUMS | awk '{print $1}')
sed -i -E "s,(\"sha256:)([a-f0-9]+)(\"),\\1$iso_checksum\\3,g" ubuntu.pkr.hcl
sed -i -E "s,\"sha.+?:[a-f0-9]*\",\"sha256:$iso_checksum\",g" ubuntu.pkr.hcl
rm SHA256SUMS*
echo 'iso_checksum updated successfully'

0 comments on commit 47764ab

Please sign in to comment.