fix: BIOS dry run also walks through the restart choices

A dry run counts as staged, so [m]/[r] and the restart question on q show up; restarting only prints in dry-run mode.
This commit is contained in:
theupriser committed 2026-09-24 10:48:39 +02:00
1 parent 54fc9e362b
commit 45a8757f58
3 files changed
+14 -4

No files matched your search

+4 -1
View File
@@ -174,7 +174,10 @@ bios_enable() {
if [[ -n "$BIOS_DRY_RUN" ]]; then
ok "Dry run: would now run: sudo fwupdmgr install -y --no-reboot-check $BIOS_CAB"
ok "Dry run finished; nothing was flashed and no restart is needed."
ok "Dry run finished; nothing was flashed."
# Treated as staged, so the restart choices that follow a real
# update show up too; restarting only prints (see restart_now).
BIOS_NEEDS_RESTART=1
rm -rf "$tmp"
return 0
fi