Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boot slot A marked as bad on the very first boot #3435

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

sairon
Copy link
Member

@sairon sairon commented Jun 20, 2024

On the very first boot, grubenv doesn't exist and loading and saving it silently fails. However, it is later created by the hassos-persists script and the missing information are added by grub.cfg on the next boot. As the consequence, when RAUC tries to get information from grubenv on the first boot, ORDER variable is missing and the slot is reported as bad.

Fixes #3376

On the very first boot, grubenv doesn't exist and loading and saving it
silently fails. However, it is later created by the hassos-persists script and
the missing information are added by grub.cfg on the next boot. As the
consequence, when RAUC tries to get information from grubenv on the first boot,
ORDER variable is missing and the slot is reported as bad.

Fixes #3376
@sairon sairon added board/ova Open Virtual Appliance (Virtual Machine) board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) labels Jun 20, 2024
@sairon sairon requested a review from agners June 20, 2024 09:20
@sairon sairon added the grub2 label Jun 20, 2024
@sairon sairon merged commit 87a6c84 into dev Jun 20, 2024
2 checks passed
@sairon sairon deleted the fix-initial-grubenv branch June 20, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/ova Open Virtual Appliance (Virtual Machine) cla-signed grub2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OS 12.2 and 12.3 show bad status on ThinkCentre M93p
2 participants