Skip to content

fog.enrollsb: do not complete a task when the menu started the run - #203

Merged
mastacontrola merged 1 commit into
masterfrom
fix/sb-enroll-menu-no-task
Nov 6, 2026
Merged

mastacontrola merged 1 commit into
masterfrom
fix/sb-enroll-menu-no-task

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Problem

The PXE menu item "Enroll Secure Boot Key (Unattended)" boots fog.enrollsb with no task scheduled. The enrollment succeeds. Then fog.nonimgcomplete asks Post_Wipe.php to close a task that does not exist. The server answers "No Active Task found" eleven times, and handleError ends a good enrollment on an error screen. Reported on forum topic 18307 with release 20261105-164908.

Fix

  • sbReport already asks secureboot.report.php before the task completes. An answer of ##notasking or ##unknownhost now sets sbNoTask=1. It prints a note that no task is scheduled, so the server keeps no record.
  • fog.enrollsb skips fog.nonimgcomplete when sbNoTask=1.
  • A scheduled task is unchanged: report, then complete.

Tests

tests/checks/secureboot-enrollment-report.sh: 18 passed.

  • Case 13: only ##notasking and ##unknownhost set the flag.
  • Case 14: runs the real fog.enrollsb against stubs.
  • Both cases go red when the fix is reverted.

tests/checks/secureboot.sh: 95 passed.

Not tested on a live menu boot.

🤖 Generated with Claude Code

The PXE menu item "Enroll Secure Boot Key (Unattended)" boots fog.enrollsb
with no task scheduled. The enrollment succeeded, then fog.nonimgcomplete
asked Post_Wipe.php to close a task that did not exist. The server answered
"No Active Task found" eleven times and handleError ended a good enrollment
on an error screen (forum topic 18307).

sbReport already asks the server first. An answer of ##notasking or
##unknownhost now sets sbNoTask=1, prints why the server keeps no record,
and fog.enrollsb skips fog.nonimgcomplete. A scheduled task is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit 559abc1 into master Nov 6, 2026
1 check passed
@mastacontrola
mastacontrola deleted the fix/sb-enroll-menu-no-task branch November 6, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant