Merge pull request #1092 from dbungert/source-catalog-tests

sources: add sample source catalog
This commit is contained in:
Michael Hudson-Doyle 2021-10-11 12:09:25 +13:00 committed by GitHub
commit 206b7ae678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 2 deletions

View File

@ -6,7 +6,8 @@ PYTHONSRC=$(NAME)
PYTHONPATH=$(shell pwd):$(shell pwd)/probert:$(shell pwd)/curtin
PROBERTDIR=./probert
PROBERT_REPO=https://github.com/canonical/probert
DRYRUN?=--dry-run --bootloader uefi --machine-config examples/simple.json
DRYRUN?=--dry-run --bootloader uefi --machine-config examples/simple.json \
--source-catalog examples/install-sources.yaml
SYSTEM_SETUP_DRYRUN?=--dry-run
export PYTHONPATH
CWD := $(shell pwd)

23
examples/install-sources.yaml Executable file
View File

@ -0,0 +1,23 @@
- description:
en: This version has been customized to have a small runtime footprint in environments
where humans are not expected to log in.
id: ubuntu-server-minimal
locale_support: none
name:
en: Ubuntu Server (minimized)
path: ubuntu-server-minimal.squashfs
size: 530485248
type: fsimage
variant: server
- default: true
description:
en: The default install contains a curated set of packages that provide a comfortable
experience for operating your server.
id: ubuntu-server
locale_support: locale-only
name:
en: Ubuntu Server
path: ubuntu-server-minimal.ubuntu-server.squashfs
size: 1066115072
type: fsimage-layered
variant: server

View File

@ -90,7 +90,8 @@ done
clean
timeout --foreground 60 sh -c "LANG=C.UTF-8 python3 -m subiquity.cmd.tui --autoinstall examples/autoinstall.yaml \
--dry-run --machine-config examples/existing-partitions.json --bootloader bios \
--kernel-cmdline 'autoinstall'"
--kernel-cmdline 'autoinstall' \
--source-catalog=examples/install-sources.yaml"
validate
python3 scripts/check-yaml-fields.py .subiquity/subiquity-curtin-install.conf \
debconf_selections.subiquity='"eek"' \