Created
February 4, 2020 13:20
-
-
Save mkaczanowski/1b6d827f99d0613b008340f9add63b19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": {}, | |
"builders": [ | |
{ | |
"type": "arm", | |
"file_urls": [ | |
"https://downloads.raspberrypi.org/raspbian/images/raspbian-2019-09-30/2019-09-26-raspbian-buster.zip" | |
], | |
"file_checksum_url": "https://downloads.raspberrypi.org/raspbian/images/raspbian-2019-09-30/2019-09-26-raspbian-buster.zip.sha256", | |
"file_checksum_type": "sha256", | |
"file_target_extension": "zip", | |
"image_build_method": "reuse", | |
"image_path": "generated-images/generated-raspbian.img", | |
"image_size": "2G", | |
"image_type": "dos", | |
"image_partitions": [ | |
{ | |
"name": "boot", | |
"type": "c", | |
"start_sector": "8192", | |
"filesystem": "vfat", | |
"size": "256M", | |
"mountpoint": "/boot" | |
}, | |
{ | |
"name": "root", | |
"type": "83", | |
"start_sector": "532480", | |
"filesystem": "ext4", | |
"size": "0", | |
"mountpoint": "/" | |
} | |
], | |
"image_chroot_env": [ | |
"PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" | |
], | |
"qemu_binary_source_path": "/usr/bin/qemu-arm-static", | |
"qemu_binary_destination_path": "/usr/bin/qemu-arm-static" | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"inline": [ | |
"touch /home/pi/packer_was_here" | |
] | |
}, | |
{ | |
"type": "file", | |
"source": "../folder-to-upload", | |
"destination": "/home/pi/target-folder/", | |
"direction": "upload" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment