dryrun: use the simple machine config (#952)

`make dryrun` will now use the simple sample machine config instead of
probing local hardware.   That local probe only seems to be viable
anyhow if we're running as root, and that's vulnerable to real problems
if dryrun is less than 100% insulated from making real machine changes.
This commit is contained in:
Dan Bungert 2021-05-12 16:23:58 -06:00 committed by GitHub
parent fcc542d436
commit d04b6a9a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@ PYTHONSRC=$(NAME)
PYTHONPATH=$(shell pwd):$(shell pwd)/probert
PROBERTDIR=./probert
PROBERT_REPO=https://github.com/canonical/probert
DRYRUN_ARGS:=--dry-run --bootloader uefi --machine-config examples/simple.json
CONSOLE_CONF_DRYRUN_ARGS:=--dry-run
export PYTHONPATH
CWD := $(shell pwd)
@ -32,10 +34,10 @@ i18n:
cd po; intltool-update -r -g subiquity
dryrun: probert i18n
$(MAKE) ui-view DRYRUN="--dry-run --bootloader uefi"
$(MAKE) ui-view DRYRUN="$(DRYRUN_ARGS)"
dryrun-console-conf:
$(MAKE) ui-view-console-conf DRYRUN="--dry-run"
$(MAKE) ui-view-console-conf DRYRUN="$(CONSOLE_CONF_DRYRUN_ARGS)"
ui-view-console-conf:
$(PYTHON) -m console_conf.cmd.tui $(DRYRUN) $(MACHARGS)