Skip to content

Commit

Permalink
use resolve-conf config solo-io/packer-plugin-arm-image#70
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Smetanka committed Oct 20, 2024
1 parent 5e28045 commit f196719
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions builder/bpim4.json.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,13 @@ source "arm-image" "bpim4-pwnagotchi" {
// qemu_binary = "qemu-aarch64-static"
qemu_args = ["-r", "6.6.44"]
target_image_size = 19969908736
resolv-conf = "copy-host"
}

build {
name = "Banana Pi M4 Zero Pwnagotchi"
sources = ["source.arm-image.bpim4-pwnagotchi"]

# Set DNS servers
provisioner "shell" {
inline = [
# Delete symlink
"sudo rm /etc/resolv.conf",
"echo 'nameserver 8.8.8.8' | sudo tee -a /etc/resolv.conf > /dev/null",
"echo 'nameserver 8.8.4.4' | sudo tee -a /etc/resolv.conf > /dev/null",
]
}

provisioner "shell" {
inline = [
"sudo apt-get update || (sleep 30 && sudo apt-get update)"
]
}

provisioner "file" {
destination = "/usr/bin/"
sources = [
Expand Down

0 comments on commit f196719

Please sign in to comment.