Skip to content

Commit d7a77c3

Browse files
author
AidanAbd
committed
fix?
1 parent af24dd8 commit d7a77c3

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

sysbox-eks-incremental.pkr.hcl

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ local "git_branch" {
5454
}
5555

5656
local "ami_name" {
57-
expression = "latch-bio/sysbox-eks_0.6.7/1.28/focal-20.04-amd64-server/nvidia-530.30.02-0ubuntu1"
57+
expression = "latch-bio/sysbox-eks_0.6.7/1.28/focal-20.04-amd64-server/nvidia-530.30.02-0ubuntu1-rev1"
5858
}
5959

6060
source "amazon-ebs" "ubuntu-eks" {
@@ -141,53 +141,6 @@ build {
141141
]
142142
}
143143

144-
provisioner "file" {
145-
source = "cloud-init-local.service.d/10-wait-for-net-device.conf"
146-
destination = "/home/ubuntu/10-wait-for-net-device.conf"
147-
}
148-
149-
provisioner "file" {
150-
source = "udev/10-ec2imds.rules"
151-
destination = "/home/ubuntu/10-ec2imds.rules"
152-
}
153-
154-
provisioner "shell" {
155-
inline_shebang = "/usr/bin/env bash"
156-
inline = [
157-
"set -o pipefail -o errexit",
158-
"",
159-
"echo '>>> Installing cloud-init network device wait configuration'",
160-
"sudo mkdir -p /etc/systemd/system/cloud-init-local.service.d",
161-
"sudo mv /home/ubuntu/10-wait-for-net-device.conf /etc/systemd/system/cloud-init-local.service.d/",
162-
"",
163-
"sudo mkdir -p /etc/udev/rules.d",
164-
"sudo mv /home/ubuntu/10-ec2imds.rules /etc/udev/rules.d/",
165-
"",
166-
"sudo systemctl daemon-reload"
167-
]
168-
}
169-
170-
provisioner "shell" {
171-
inline_shebang = "/usr/bin/env bash"
172-
inline = [
173-
"set -o pipefail -o errexit",
174-
175-
"echo '>>> Configuring KVM support'",
176-
"sudo modprobe kvm",
177-
178-
"echo 'kvm' | sudo tee -a /etc/modules",
179-
180-
"sudo dasel put string --parser toml --file /etc/crio/crio.conf --selector 'crio.runtime.allowed_devices.[]' --multiple /dev/kvm",
181-
182-
"sudo systemctl restart crio",
183-
184-
# configure /dev/kvm perms to allow containers to r/w to it
185-
"echo 'KERNEL==\"kvm\", MODE=\"0666\"' | sudo tee /etc/udev/rules.d/99-kvm-permissions.rules > /dev/null",
186-
"sudo udevadm control --reload-rules",
187-
"sudo udevadm trigger"
188-
]
189-
}
190-
191144
provisioner "shell" {
192145
inline_shebang = "/usr/bin/env bash"
193146
inline = [

0 commit comments

Comments
 (0)