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

efi: update the ESP by creating a tmpdir and RENAME_EXCHANGE #669

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 4, 2024

  1. efi: update the ESP by creating a tmpdir and RENAME_EXCHANGE

    See Timothée's comment coreos#454 (comment)
    logic is like this:
    - `cp -a fedora fedora.tmp`
      - We start with a copy to make sure to keep all other files
    that we do not explicitly track in bootupd
    - Update the content of `fedora.tmp` with the new binaries
    - Exchange `fedora.tmp` -> `fedora`
    - Remove now "old" `fedora.tmp`
    
    If we have a file not in a directory in `EFI`, then we can copy
    it to `foo.tmp` and then act on it and finally rename it. No
    need to copy the entire `EFI`.
    Fixes coreos#454
    HuijingHei committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    6d9f6d1 View commit details
    Browse the repository at this point in the history