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

Update does not add missing files in /boot/efi/ #786

Open
HuijingHei opened this issue Dec 2, 2024 · 5 comments
Open

Update does not add missing files in /boot/efi/ #786

HuijingHei opened this issue Dec 2, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@HuijingHei
Copy link
Member

The context is #765 (comment), when doing updates, find that it does not add the missing files.

Steps:

  • Fresh install silverblue 41.1.4 (older version), remove BOOT/BOOTIA32.EFI & BOOT/fbia32.efi and upgrade bootupd to 0.2.25-1.fc41, remove /boot/bootupd-state.json, run bootupctl adopt-and-update successfully.
  • Upgrade to 41.20241201.0, check bootloader-update.service is successful to update grub2 and shim, but check BOOT/BOOTIA32.EFI & BOOT/fbia32.efi are not added.
@travier travier added the bug Something isn't working label Dec 2, 2024
@travier
Copy link
Member

travier commented Dec 2, 2024

Maybe we should think of this as "Adoption does not record missing files in the ESP".

@HuijingHei
Copy link
Member Author

Maybe we should think of this as "Adoption does not record missing files in the ESP".

When do adoption, seems we add all the version we have in /usr/lib/bootupd/updates/EFI.json to /boot/bootupd-state.json, also includes the package that are not installed, for example: grub2-efi-ia32-1:2.12-15.fc41.x86_64,shim-ia32-15.8-3.x86_64. If the adoption only include the installed packages in bootupd-state.json, then for the next upgrade it would add the missing files.
But want to confirm that if it is necessary to do the change for adoption to only include the installed packages bootupd-state.json?

@travier
Copy link
Member

travier commented Dec 3, 2024

But want to confirm that if it is necessary to do the change for adoption to only include the installed packages bootupd-state.json?

Yes, I think that's what we should do. The adoption phase should only include in bootupd-state.json the files that actually exists in the ESP.

@travier
Copy link
Member

travier commented Dec 3, 2024

And maybe directly install the missing ones.

@HuijingHei
Copy link
Member Author

And maybe directly install the missing ones.

Agree that it would make adopt simple, and finally sync with update, only concern if it will make customers / users confused that we add additional files that they might not need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants