mirror of
https://github.com/0x1d/terraform-docker-packer.git
synced 2025-12-16 14:35:06 +01:00
Add firstboot provisioning
This commit is contained in:
@@ -11,7 +11,7 @@ source "arm" "raspios-arm64" {
|
||||
file_unarchive_cmd = ["xz", "--decompress", "$ARCHIVE_PATH"]
|
||||
image_build_method = "resize"
|
||||
image_path = "raspios-arm64.img"
|
||||
image_size = "6G"
|
||||
image_size = "4G"
|
||||
image_type = "dos"
|
||||
|
||||
image_partitions {
|
||||
@@ -39,6 +39,17 @@ source "arm" "raspios-arm64" {
|
||||
|
||||
build {
|
||||
sources = ["source.arm.raspios-arm64"]
|
||||
|
||||
provisioner "file" {
|
||||
source = "rootfs/lib/systemd/system/firstboot.service"
|
||||
destination = "/lib/systemd/system/firstboot.service"
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = "rootfs/lib/firstboot.sh"
|
||||
destination = "/lib/firstboot.sh"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
scripts = [
|
||||
"scripts/pi.sh",
|
||||
|
||||
Reference in New Issue
Block a user