Add linux-grub-repair script to automate GRUB re-installation on failed Linux VMs#123
Draft
Add linux-grub-repair script to automate GRUB re-installation on failed Linux VMs#123
Conversation
… grub re-installation automation Agent-Logs-Url: https://github.com/Azure/repair-script-library/sessions/abf07f2b-e20c-42bd-b3ff-b25a181f03f6 Co-authored-by: EdwinBernal1 <109677148+EdwinBernal1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance automation for grub re-installation issue
Add linux-grub-repair script to automate GRUB re-installation on failed Linux VMs
May 8, 2026
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.
GRUB corruption is a recurring boot failure scenario with no dedicated automated repair path. This adds a focused
linux-grub-repairscript that handles GEN1 and GEN2 cases, and updateslinux-alar2docs to surface all available ALAR2 actions.Changes
New
src/linux/linux-grub-repair.sh— dedicated script wrapping ALAR2'sgrubfix/efifixactions:/sys/firmware/efi/efivars; runsgrubfix(GEN1) orefifix(GEN2/EFI) accordinglygrubfixorefifix) with input validationUpdated
src/linux/linux-alar2.sh— expanded header docs to enumerate all supported ALAR2 actions (grubfix,efifix,auditd,sudo,corrupt) with descriptions and a multi-action usage exampleUpdated
map.json— registerslinux-grub-repairas a new run-idUsage