You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extend generate-update-metadata to read from /usr (Unification of boot loader updates, phase 1) #926
Here are some concerns about the change of /usr/lib/(shim|grub)/%{version}-%{release}
Can not get Epoch for the shim / grub, this might be inconsistent from before like grub2-efi-x64-1:2.12-34.fc43.x86_64
We get version from the new path /usr/lib/(shim|grub)/%{version}-%{release}: shim/15.8-4 -> shim-15.8-4 grub2/2.12-34.fc43 -> grub2-2.12-34.fc43
Before we use rpm, the result is shim-x64-15.8-4.x86_64, grub2-efi-x64-1:2.12-34.fc43.x86_64.
Can not get buildtime of the package that included in EFI.json
In this case, for comparison, need to make them in the same format, maybe just compare the %{version}-%{release}?
For the build time, maybe can use the generate time instead?
For silverblue we install both shim-ia32 and shim-x64, in this case /usr/lib/shim would include both, right?
Thanks for testing that out. Looks like we indeed can not stop relying on the RPM db for now. Maybe let's do something hybrid and query the RPM db but pick things from the /usr/lib/ paths instead.
The paths are indeed inconsistent when comparing the grub & shim packages so that should be fixed in the packages.
Looks like we indeed can not stop relying on the RPM db for now. Maybe let's do something hybrid and query the RPM db but pick things from the /usr/lib/ paths instead.
When call generate-update-metadata, now we move dir usr/lib/ostree-boot/efi/EFI to usr/lib/bootupd/updates/, do you mean that we will move /usr/lib/(shim|grub)/%{version}-%{release}/EFI/ to usr/lib/bootupd/updates/ instead?
The paths are indeed inconsistent when comparing the grub & shim packages so that should be fixed in the packages.
How about like shim-x64/15.8-4, grub2-efi-x64/1:2.12-34.fc43? But the directories might be different on different arches, for example shim-aa64 on aarch64, and we need to update to the related dir.
Looks like we indeed can not stop relying on the RPM db for now. Maybe let's do something hybrid and query the RPM db but pick things from the /usr/lib/ paths instead.
When call generate-update-metadata, now we move dir usr/lib/ostree-boot/efi/EFI to usr/lib/bootupd/updates/, do you mean that we will move /usr/lib/(shim|grub)/%{version}-%{release}/EFI/ to usr/lib/bootupd/updates/ instead?
I think that's probably what we should start with, yes.
The paths are indeed inconsistent when comparing the grub & shim packages so that should be fixed in the packages.
How about like shim-x64/15.8-4, grub2-efi-x64/1:2.12-34.fc43? But the directories might be different on different arches, for example shim-aa64 on aarch64, and we need to update to the related dir.
It's indeed not great to have those under different names than their subpackage. I'm also wondering if we shouldn't put them inside a single /usr/lib/efi/(shim*|grub*) directory instead as well so that we can stop looking at /boot and look at t he content of this directory instead. Otherwise we would have to look at /boot, get the packages owning files there, then look at the files in /usr/lib. Or instead have the generate-metadata command specifically list the package to take into account?
I have reworked MRs [1,2] (no scratch builds this time) based on your comments and the only piece different is new efi folder on top of /usr/lib/, where grub and shim will place their files on top
Activity
HuijingHei commentedon May 27, 2025
Here are some concerns about the change of
/usr/lib/(shim|grub)/%{version}-%{release}Can not get
Epochfor the shim / grub, this might be inconsistent from before likegrub2-efi-x64-1:2.12-34.fc43.x86_64We get version from the new path
/usr/lib/(shim|grub)/%{version}-%{release}:shim/15.8-4->shim-15.8-4grub2/2.12-34.fc43->grub2-2.12-34.fc43Before we use
rpm, the result isshim-x64-15.8-4.x86_64,grub2-efi-x64-1:2.12-34.fc43.x86_64.Can not get buildtime of the package that included in
EFI.jsonIn this case, for comparison, need to make them in the same format, maybe just compare the
%{version}-%{release}?For the build time, maybe can use the generate time instead?
For silverblue we install both
shim-ia32andshim-x64, in this case/usr/lib/shimwould include both, right?See the output
CC @travier
travier commentedon May 27, 2025
Thanks for testing that out. Looks like we indeed can not stop relying on the RPM db for now. Maybe let's do something hybrid and query the RPM db but pick things from the
/usr/lib/paths instead.The paths are indeed inconsistent when comparing the grub & shim packages so that should be fixed in the packages.
travier commentedon May 27, 2025
Ah, there is no dist for shim as it's the same build for all releases
travier commentedon May 27, 2025
So this makes installing the shim & grub binaries under versioned directories less interesting.
HuijingHei commentedon May 27, 2025
When call
generate-update-metadata, now we move dirusr/lib/ostree-boot/efi/EFItousr/lib/bootupd/updates/, do you mean that we will move/usr/lib/(shim|grub)/%{version}-%{release}/EFI/tousr/lib/bootupd/updates/instead?How about like
shim-x64/15.8-4,grub2-efi-x64/1:2.12-34.fc43? But the directories might be different on different arches, for exampleshim-aa64on aarch64, and we need to update to the related dir.travier commentedon May 27, 2025
I think that's probably what we should start with, yes.
It's indeed not great to have those under different names than their subpackage. I'm also wondering if we shouldn't put them inside a single
/usr/lib/efi/(shim*|grub*)directory instead as well so that we can stop looking at/bootand look at t he content of this directory instead. Otherwise we would have to look at/boot, get the packages owning files there, then look at the files in/usr/lib. Or instead have the generate-metadata command specifically list the package to take into account?I'm not sure.
lsandov1 commentedon May 27, 2025
I have reworked MRs [1,2] (no scratch builds this time) based on your comments and the only piece different is new
efifolder on top of/usr/lib/, where grub and shim will place their files on topbut maybe this does not solve the issue.
@travier @HuijingHei propose any directory hierarchy and I follow it, whatever if fits better for your scripting.
[1] https://src.fedoraproject.org/rpms/grub2/pull-request/170
[2] https://src.fedoraproject.org/rpms/shim/pull-request/5
HuijingHei commentedon May 28, 2025
Thank you @lsandov1 for the update, will try
/usr/lib/efi/(shim*|grub*).Extend `generate-update-metadata()` to read from `/usr`
Extend `generate-update-metadata()` to read from `/usr`
Extend `generate-update-metadata()` to read from `/usr`
Extend `generate-update-metadata()` to read from `/usr`
24 remaining items
HuijingHei commentedon Oct 15, 2025
Close this as done.
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
build.sh/patch_osbuild: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
build.sh/patch_osbuild: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
stages: extend to find EFI under `usr/lib/efi`
build.sh/patch_osbuild: extend to find EFI under `usr/lib/efi`
build.sh/patch_osbuild: extend to find EFI under `usr/lib/efi`