mirror of
https://github.com/outbackdingo/debos.git
synced 2026-01-28 10:18:43 +00:00
We declared the suite variable (defaulting to stretch), but only used it for the filename and not for building the OS, which took a hardcoded suite name. Use the suite variable in OS building, changing the default to buster to match the previous hard-coding. Signed-off-by: Daniel Stone <daniels@collabora.com>
35 lines
757 B
YAML
35 lines
757 B
YAML
{{- $architecture := or .architecture "arm64" -}}
|
|
{{- $suite := or .suite "buster" -}}
|
|
{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }}
|
|
|
|
architecture: {{ $architecture }}
|
|
|
|
actions:
|
|
- action: debootstrap
|
|
suite: {{ $suite }}
|
|
components:
|
|
- main
|
|
- contrib
|
|
- non-free
|
|
mirror: https://deb.debian.org/debian
|
|
variant: minbase
|
|
|
|
- action: apt
|
|
description: Install some packages
|
|
packages: [ sudo, openssh-server, adduser, systemd-sysv, firmware-linux ]
|
|
|
|
- action: run
|
|
chroot: true
|
|
script: setup-user.sh
|
|
|
|
- action: overlay
|
|
source: overlays/sudo
|
|
|
|
- action: run
|
|
chroot: true
|
|
command: echo debian > /etc/hostname
|
|
|
|
- action: pack
|
|
file: {{ $image }}
|
|
compression: gz
|