mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
1
Makefile
1
Makefile
@ -44,7 +44,6 @@ packer:
|
|||||||
curl https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_amd64.zip -o /tmp/packer.zip
|
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
|
unzip -o /tmp/packer.zip -d /tmp
|
||||||
sudo mv /tmp/packer /usr/bin/packer
|
sudo mv /tmp/packer /usr/bin/packer
|
||||||
/usr/bin/packer plugins install github.com/solo-io/arm-image
|
|
||||||
|
|
||||||
image: packer
|
image: packer
|
||||||
export LC_ALL=en_GB.UTF-8
|
export LC_ALL=en_GB.UTF-8
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
packer {
|
packer {
|
||||||
required_plugins {
|
required_plugins {
|
||||||
|
arm-image = {
|
||||||
|
source = "github.com/solo-io/arm-image"
|
||||||
|
version = ">= 0.0.1"
|
||||||
|
}
|
||||||
ansible = {
|
ansible = {
|
||||||
source = "github.com/hashicorp/ansible"
|
source = "github.com/hashicorp/ansible"
|
||||||
version = ">= 1.1.1"
|
version = ">= 1.1.1"
|
||||||
@ -22,7 +26,6 @@ source "arm-image" "rpi64-pwnagotchi" {
|
|||||||
output_filename = "../../../pwnagotchi-64bit.img"
|
output_filename = "../../../pwnagotchi-64bit.img"
|
||||||
qemu_binary = "qemu-aarch64-static"
|
qemu_binary = "qemu-aarch64-static"
|
||||||
target_image_size = 9969908736
|
target_image_size = 9969908736
|
||||||
last_partition_extra_size = 9221225472
|
|
||||||
}
|
}
|
||||||
|
|
||||||
source "arm-image" "rpi32-pwnagotchi" {
|
source "arm-image" "rpi32-pwnagotchi" {
|
||||||
@ -34,7 +37,6 @@ source "arm-image" "rpi32-pwnagotchi" {
|
|||||||
qemu_args = ["-cpu", "arm1176"]
|
qemu_args = ["-cpu", "arm1176"]
|
||||||
image_arch = "arm"
|
image_arch = "arm"
|
||||||
target_image_size = 9969908736
|
target_image_size = 9969908736
|
||||||
last_partition_extra_size = 9221225472
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# a build block invokes sources and runs provisioning steps on them. The
|
# a build block invokes sources and runs provisioning steps on them. The
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
packer {
|
packer {
|
||||||
required_plugins {
|
required_plugins {
|
||||||
|
arm-image = {
|
||||||
|
source = "github.com/solo-io/arm-image"
|
||||||
|
version = ">= 0.0.1"
|
||||||
|
}
|
||||||
ansible = {
|
ansible = {
|
||||||
source = "github.com/hashicorp/ansible"
|
source = "github.com/hashicorp/ansible"
|
||||||
version = ">= 1.1.1"
|
version = ">= 1.1.1"
|
||||||
@ -24,8 +28,7 @@ source "arm-image" "rpi32-pwnagotchi" {
|
|||||||
qemu_args = ["-cpu", "arm1176"]
|
qemu_args = ["-cpu", "arm1176"]
|
||||||
image_arch = "arm"
|
image_arch = "arm"
|
||||||
image_mounts = ["/boot/firmware","/"]
|
image_mounts = ["/boot/firmware","/"]
|
||||||
target_image_size = 9969908736
|
target_image_size = 19969908736
|
||||||
last_partition_extra_size = 9221225472
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build {
|
build {
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
packer {
|
packer {
|
||||||
required_plugins {
|
required_plugins {
|
||||||
|
arm-image = {
|
||||||
|
source = "github.com/solo-io/arm-image"
|
||||||
|
version = ">= 0.0.1"
|
||||||
|
}
|
||||||
ansible = {
|
ansible = {
|
||||||
source = "github.com/hashicorp/ansible"
|
source = "github.com/hashicorp/ansible"
|
||||||
version = ">= 1.1.1"
|
version = ">= 1.1.1"
|
||||||
@ -22,7 +26,6 @@ source "arm-image" "rpi64-pwnagotchi" {
|
|||||||
output_filename = "../../../pwnagotchi-64bit.img"
|
output_filename = "../../../pwnagotchi-64bit.img"
|
||||||
qemu_binary = "qemu-aarch64-static"
|
qemu_binary = "qemu-aarch64-static"
|
||||||
target_image_size = 9969908736
|
target_image_size = 9969908736
|
||||||
last_partition_extra_size = 9221225472
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# a build block invokes sources and runs provisioning steps on them. The
|
# a build block invokes sources and runs provisioning steps on them. The
|
||||||
|
Reference in New Issue
Block a user