32 lines
674 B
YAML
32 lines
674 B
YAML
{{- $architecture := or .architecture "arm64" -}}
|
|
{{- $suite := or .suite "bullseye" -}}
|
|
{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }}
|
|
|
|
architecture: {{ $architecture }}
|
|
|
|
actions:
|
|
- action: debootstrap
|
|
suite: {{ $suite }}
|
|
components:
|
|
- main
|
|
mirror: http://deb.debian.org/debian
|
|
variant: minbase
|
|
|
|
- action: apt
|
|
recommends: false
|
|
packages:
|
|
- adduser
|
|
- sudo
|
|
- systemd-container
|
|
- net-tools
|
|
|
|
- action: run
|
|
description: Set hostname
|
|
chroot: true
|
|
command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname
|
|
|
|
- action: pack
|
|
file: {{ $image }}
|
|
compression: gz
|
|
|