vmspawn: Add --firmware=describe

It's useful to be able to check what firmware description vmspawn
will select. In particular, this will allow me to figure out the
nvram template file that will be picked up so I can pick it up in
mkosi and operate on it to pass a modified version of it to vmspawn
with --efi-nvram-template=.
This commit is contained in:
Daan De Meyer
2026-03-27 12:55:32 +01:00
committed by Daan De Meyer
parent 5a7d70e807
commit d6e5fbca73
5 changed files with 53 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ _systemd_vmspawn() {
comps=$(compgen -f -- "$cur" )
elif __contains_word "$prev" ${OPTS[FIRMWARE]}; then
compopt -o nospace -o filenames
comps="list $(compgen -f -- "$cur" )"
comps="list describe $(compgen -f -- "$cur" )"
elif __contains_word "$prev" ${OPTS[FIRMWARE_FEATURES]}; then
comps='list'
elif __contains_word "$prev" ${OPTS[BIND]}; then