Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 92dff26

Browse files
authored
fix(images): wait for cloud-init to be done before updating packages (#3132)
* Wait for cloud-init to be done before updating repos * Same thing for arm64 * Same thing for focal
1 parent fe82288 commit 92dff26

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Diff for: images/ubuntu-focal/github_agent.ubuntu.pkr.hcl

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ build {
127127
"DEBIAN_FRONTEND=noninteractive"
128128
]
129129
inline = concat([
130+
"sudo cloud-init status --wait",
130131
"sudo apt-get -y update",
131132
"sudo apt-get -y install ca-certificates curl gnupg lsb-release",
132133
"sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg",

Diff for: images/ubuntu-jammy-arm64/github_agent.ubuntu.pkr.hcl

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ build {
127127
"DEBIAN_FRONTEND=noninteractive"
128128
]
129129
inline = concat([
130+
"sudo cloud-init status --wait",
130131
"sudo apt-get update",
131132
"sudo apt-get -y install ca-certificates curl gnupg lsb-release",
132133
"sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg",

Diff for: images/ubuntu-jammy/github_agent.ubuntu.pkr.hcl

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ build {
127127
"DEBIAN_FRONTEND=noninteractive"
128128
]
129129
inline = concat([
130+
"sudo cloud-init status --wait",
130131
"sudo apt-get -y update",
131132
"sudo apt-get -y install ca-certificates curl gnupg lsb-release",
132133
"sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg",

0 commit comments

Comments
 (0)