debian: acrn-hypervisor: Refactor debconf

Tracked-On: #6688
Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
Helmut Buchsbaum
2022-05-04 19:58:37 +02:00
committed by acrnsi-robot
parent e49f18f1f3
commit 46416f9fc4
6 changed files with 59 additions and 27 deletions

View File

@@ -11,16 +11,6 @@ ACRNDIR=@acrndir@
db_get acrn-hypervisor/board
BOARD=${RET}
SCENARIOS=$(find ${ACRNDIR}/${BOARD} -maxdepth 1 -type d \
| tail -n +2 | sed "s#${ACRNDIR}/${BOARD}/##" \
| sort | awk '{s=s (s?OFS:x) $1} END {print s}' OFS=", ")
db_subst acrn-hypervisor/scenario scenariolist ${SCENARIOS}
db_clear
db_input critical acrn-hypervisor/scenario || true
db_go || true
db_get acrn-hypervisor/scenario
SCENARIO=${RET}