Add --auto-resume: complete activation automatically after the BIOS-t…#4
Merged
Conversation
…oggle reboot When the firmware refuses with AMT_STATUS_NOT_PERMITTED (manageability disabled in BIOS, e.g. P3 Ultra 30HA factory state), amt-activate now offers to finish the job itself: - stages the think-lmi BIOS toggle (tries ManageabilityControl, then AMTControl) so no BIOS menu visit is needed - installs a self-disabling one-shot amt-autoactivate.service that re-runs activation at next boot via the new --resume mode (reuses the saved password non-interactively, disables the unit on success, retries next boot if the toggle still is not live) - --auto-resume does the same without prompting, for headless/automation Also fixes a latent bug: rpc exits non-zero on refusal (Error 4 AmtNotReady), and under set -euo pipefail the activate|tee pipeline killed the script before any post-activation handling ran — including the NOT_PERMITTED hint added in #3. The pipeline now tolerates rpc's exit code and the handlers actually execute. Bumps script VERSION to 0.2.0. README: quick-start, Lenovo section, and troubleshooting row updated for the automatic path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…oggle reboot
When the firmware refuses with AMT_STATUS_NOT_PERMITTED (manageability disabled in BIOS, e.g. P3 Ultra 30HA factory state), amt-activate now offers to finish the job itself:
Also fixes a latent bug: rpc exits non-zero on refusal (Error 4 AmtNotReady), and under set -euo pipefail the activate|tee pipeline killed the script before any post-activation handling ran — including the NOT_PERMITTED hint added in #3. The pipeline now tolerates rpc's exit code and the handlers actually execute.
Bumps script VERSION to 0.2.0. README: quick-start, Lenovo section, and troubleshooting row updated for the automatic path.