{{- $architecture := or .architecture "i386" -}} {{- $machine := or .machine "generic" -}} {{- $project := or .project "pinball" -}} {{- $suite := or .suite "bullseye" -}} {{- $image := or .image (printf "%s-%s-%s.img" $project $architecture $machine) -}} architecture: {{$architecture}} actions: - action: image-partition imagename: {{$image}} imagesize: 2GB partitiontype: msdos mountpoints: - mountpoint: / partition: root partitions: - name: root fs: ext4 start: 512 end: 100% flags: [boot] - action: apt packages: {{if eq $architecture "i386" "amd64"}} - grub-pc {{end}} {{if eq $suite "unstable" "sid" "testing" "bullseye"}} - linux-image-generic {{else}} {{if eq $suite "buster" "stable"}} {{if eq $architecture "i386"}} - linux-image-686 {{else}} - linux-image-{{$architecture}} {{end}} {{end}} {{end}} - firmware-linux-free - firmware-linux-nonfree