packer: update build system

Adding TPM tooling, dnsmasq.
This commit is contained in:
2023-04-13 22:14:39 -07:00
parent 581b3972d1
commit 2528abf8c6
13 changed files with 147 additions and 100 deletions

View File

@@ -45,12 +45,27 @@
"provisioners": [
{
"destination": "/boot/firmware/user-data",
"source": "files/user-data",
"source": "files/user-data_cdev",
"type": "file"
},
{
"destination": "/etc/hosts",
"source": "files/hosts",
"type": "file"
},
{
"destination": "/etc/dnsmasq.conf",
"source": "files/dnsmasq.conf",
"type": "file"
},
{
"destination": "/etc/systemd/system/tailscale.service",
"source": "files/tailscale.service",
"type": "file"
},
{
"scripts": [
"scripts/install-base.sh",
"scripts/setup-base.sh",
"scripts/setup-ssh.sh",
"scripts/setup-cdev.sh"
],

View File

@@ -16,7 +16,7 @@
"$ARCHIVE_PATH"
],
"image_build_method": "reuse",
"image_path": "build/cm4-cluster-ubuntu-22.04.2.img",
"image_path": "build/cm4-cnode-ubuntu-22.04.2.img",
"image_size": "32G",
"image_type": "dos",
"image_partitions": [
@@ -45,12 +45,12 @@
"provisioners": [
{
"destination": "/boot/firmware/user-data",
"source": "files/user-data",
"source": "files/user-data_cnode",
"type": "file"
},
{
"scripts": [
"scripts/install-base.sh",
"scripts/setup-base.sh",
"scripts/setup-ssh.sh"
],
"type": "shell"

View File

@@ -1,60 +0,0 @@
{
"variables": {},
"builders": [
{
"type": "arm",
"file_urls": [
"build/ubuntu-22.04.2-preinstalled-server-arm64+raspi.img.xz",
"https://cdimage.ubuntu.com/releases/22.04.2/release/ubuntu-22.04.2-preinstalled-server-arm64+raspi.img.xz"
],
"file_checksum_url": "http://cdimage.ubuntu.com/releases/22.04.2/release/SHA256SUMS",
"file_checksum_type": "sha256",
"file_target_extension": "xz",
"file_unarchive_cmd": [
"xz",
"--decompress",
"$ARCHIVE_PATH"
],
"image_build_method": "reuse",
"image_path": "build/rp4-cdev-ubuntu-22.04.2.img",
"image_size": "32G",
"image_type": "dos",
"image_partitions": [
{
"name": "boot",
"type": "c",
"start_sector": 2048,
"size": "256M",
"mountpoint": "/boot/firmware"
},
{
"name": "root",
"type": "83",
"start_sector": 526336,
"size": "31.7G",
"mountpoint": "/"
}
],
"image_chroot_env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
],
"qemu_binary_source_path": "/usr/bin/qemu-aarch64-static",
"qemu_binary_destination_path": "/usr/bin/qemu-aarch64-static"
}
],
"provisioners": [
{
"destination": "/boot/firmware/user-data",
"source": "files/user-data",
"type": "file"
},
{
"scripts": [
"scripts/install-base.sh",
"scripts/setup-ssh.sh"
],
"type": "shell"
}
],
"post-processors": null
}