Skip to content

Patch bootctl to not override shim by default.#247

Merged
liulanze merged 1 commit into
mainfrom
user/lanzeliu/bootctl-manual
May 27, 2025
Merged

Patch bootctl to not override shim by default.#247
liulanze merged 1 commit into
mainfrom
user/lanzeliu/bootctl-manual

Conversation

@liulanze
Copy link
Copy Markdown
Contributor

@liulanze liulanze commented May 26, 2025

Backup the original shim binary before it gets overwritten by bootctl. This ensures that the Secure Boot chain is preserved. The reason we do not disassemble the bootctl and do the clis manually is that the bootctl is not only doing the folder creation or files copy, but it also configures the /boot/efi/loader, there are some setups under it, for example:

root [ /home/test ]# ls /boot/efi/loader
entries  entries.srel  loader.conf  random-seed

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • Code conforms to style guidelines

Test pipeline run: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=819585&view=results

@liulanze liulanze requested a review from a team as a code owner May 26, 2025 21:17
@liulanze liulanze force-pushed the user/lanzeliu/bootctl-manual branch from 829637d to 38a8b8f Compare May 27, 2025 18:44
@liulanze liulanze merged commit ea527b5 into main May 27, 2025
9 of 11 checks passed
@liulanze liulanze deleted the user/lanzeliu/bootctl-manual branch May 27, 2025 20:00
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.

3 participants