efi: Extend install() & update() to support usr/lib/efi#992
Conversation
|
Skipping CI for Draft Pull Request. |
2c9e284 to
9ead61b
Compare
9ead61b to
60160c0
Compare
84859b4 to
f5a32fc
Compare
|
Test with this patch, the following is the new Update the result: |
3dd909e to
798f2a2
Compare
|
Update the result, for the |
798f2a2 to
fbb98bc
Compare
be41d67 to
26046df
Compare
34c78c8 to
6285a6a
Compare
`copy_dir()` will copy with default option '-a', and we need to support `["-rp", "--reflink=auto"]` when install.
6285a6a to
ee1e2ad
Compare
install() to support usr/lib/efiinstall() & update() to support usr/lib/efi
ee1e2ad to
0a4a859
Compare
|
|
Add `source` in `FileMetadata` to save the file source path, it is needed by changes / additions. For example add `shim/15.8-5/EFI/fedora/shim.efi` to Filemetadata, and keep `fedora/shim.efi` as the key, when doing updates: - for additions/changes, will copy source path to dest path as `shim/15.8-5/EFI/fedora/shim.efi -> fedora/shim.efi` - for removals, only use path `fedora/shim.efi` as we do not need the source path, as only do operations in dest dir
when doing `generate_update_metadata()` As we support updates from `usr/lib/efi`, there is no need to copy the EFI components to `usr/lib/bootupd/updates/`. Also update kola test-bootupd.
0a4a859 to
1c02bc7
Compare
|
Thank you @cgwalters for the kind review! |
filetree: add
copy_dir_with_args()to support additional argscopy_dir()will copy with default option '-a', and we need tosupport
["-rp", "--reflink=auto"]when install.efi: Extend
install()to supportusr/lib/efiefi: Extend
update()to supportusr/lib/efiAdd
sourceinFileMetadatato save the file source path, itis needed by changes / additions.
For example add
shim/15.8-5/EFI/fedora/shim.efito Filemetadata,and keep
fedora/shim.efias the key, when doing updates:shim/15.8-5/EFI/fedora/shim.efi -> fedora/shim.efifedora/shim.efias we do not needthe source path, as only do operations in dest dir
efi: Stop copying EFI components to
usr/lib/bootupd/updates/when doing
generate_update_metadata()As we support updates from
usr/lib/efi, there is no need to copythe EFI components to
usr/lib/bootupd/updates/.Also update kola test-bootupd.
See step3 in #926 (comment)