Skip to content

feat: Add command to manually swap the GuestOS alternative#9154

Merged
frankdavid merged 5 commits intomasterfrom
frankdavid/guestos-alternative
Mar 4, 2026
Merged

feat: Add command to manually swap the GuestOS alternative#9154
frankdavid merged 5 commits intomasterfrom
frankdavid/guestos-alternative

Conversation

@frankdavid
Copy link
Contributor

We already have an automatic mechanism that rolls back the GuestOS to the other boot alternative if the GuestOS boot fails. This PR adds a manual mechanism that node operators can use to swap the boot alternative manually.

The new commands are available through the limited host console:

guestos-alternative show
guestos-alternative swap
guestos-alternative swap A

- Add sudo to the hostos_tool guestos-alternative swap call in
  limited-console, since writing to the boot partition requires root.
- Add a corresponding NOPASSWD sudoers rule for the limited-console user.
@frankdavid frankdavid requested a review from a team as a code owner March 3, 2026 16:26
@github-actions github-actions bot added the feat label Mar 3, 2026
@frankdavid frankdavid changed the title feat: Add feature to manually swap the GuestOS alternative feat: Add command to manually swap the GuestOS alternative Mar 3, 2026
@github-actions github-actions bot added the @node label Mar 3, 2026
@frankdavid frankdavid enabled auto-merge March 4, 2026 19:18
@frankdavid frankdavid added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit 1406b99 Mar 4, 2026
39 checks passed
@frankdavid frankdavid deleted the frankdavid/guestos-alternative branch March 4, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants