Update build

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-07-01 20:15:45 +02:00
parent dbb83b4825
commit de0a09e39d
4 changed files with 13 additions and 6 deletions

View File

@ -44,7 +44,6 @@ packer:
curl https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_amd64.zip -o /tmp/packer.zip
unzip -o /tmp/packer.zip -d /tmp
sudo mv /tmp/packer /usr/bin/packer
/usr/bin/packer plugins install github.com/solo-io/arm-image
image: packer
export LC_ALL=en_GB.UTF-8

View File

@ -1,5 +1,9 @@
packer {
required_plugins {
arm-image = {
source = "github.com/solo-io/arm-image"
version = ">= 0.0.1"
}
ansible = {
source = "github.com/hashicorp/ansible"
version = ">= 1.1.1"
@ -22,7 +26,6 @@ source "arm-image" "rpi64-pwnagotchi" {
output_filename = "../../../pwnagotchi-64bit.img"
qemu_binary = "qemu-aarch64-static"
target_image_size = 9969908736
last_partition_extra_size = 9221225472
}
source "arm-image" "rpi32-pwnagotchi" {
@ -34,7 +37,6 @@ source "arm-image" "rpi32-pwnagotchi" {
qemu_args = ["-cpu", "arm1176"]
image_arch = "arm"
target_image_size = 9969908736
last_partition_extra_size = 9221225472
}
# a build block invokes sources and runs provisioning steps on them. The

View File

@ -1,5 +1,9 @@
packer {
required_plugins {
arm-image = {
source = "github.com/solo-io/arm-image"
version = ">= 0.0.1"
}
ansible = {
source = "github.com/hashicorp/ansible"
version = ">= 1.1.1"
@ -24,8 +28,7 @@ source "arm-image" "rpi32-pwnagotchi" {
qemu_args = ["-cpu", "arm1176"]
image_arch = "arm"
image_mounts = ["/boot/firmware","/"]
target_image_size = 9969908736
last_partition_extra_size = 9221225472
target_image_size = 19969908736
}
build {

View File

@ -1,5 +1,9 @@
packer {
required_plugins {
arm-image = {
source = "github.com/solo-io/arm-image"
version = ">= 0.0.1"
}
ansible = {
source = "github.com/hashicorp/ansible"
version = ">= 1.1.1"
@ -22,7 +26,6 @@ source "arm-image" "rpi64-pwnagotchi" {
output_filename = "../../../pwnagotchi-64bit.img"
qemu_binary = "qemu-aarch64-static"
target_image_size = 9969908736
last_partition_extra_size = 9221225472
}
# a build block invokes sources and runs provisioning steps on them. The