diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
commit | d993571e2ee444d08f4e9e90d493ee37338657e3 (patch) | |
tree | 5a49a1d4ceffe800051e363f64571c3b6735d2f7 /app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch | |
parent | 266d65d0cceeb55ab2cc3bf4e465d7f35502a900 (diff) |
gentoo auto-resync : 13:04:2024 - 12:04:19
Diffstat (limited to 'app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch')
-rw-r--r-- | app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch b/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch deleted file mode 100644 index 9af50fb4b310..000000000000 --- a/app-emulation/virt-firmware/files/virt-firmware-24.2_p20240402-expand-shim-search.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://gitlab.com/kraxel/virt-firmware/-/merge_requests/11 -diff --git a/virt/firmware/bootcfg/linuxcfg.py b/virt/firmware/bootcfg/linuxcfg.py -index 5682b15..121af73 100644 ---- a/virt/firmware/bootcfg/linuxcfg.py -+++ b/virt/firmware/bootcfg/linuxcfg.py -@@ -188,9 +188,10 @@ class LinuxOsInfo(OsRelease): - - def shim_path(self): - esp = self.esp_path() -- subdir = self.esp_distro_dir() -+ distro_dir = self.esp_distro_dir() - arch = self.efi_arch() -- shim = f'{esp}/EFI/{subdir}/shim{arch}.efi' -- if os.path.exists(shim): -- return shim -+ for subdir in distro_dir, 'shim', 'Linux': -+ shim = f'{esp}/EFI/{subdir}/shim{arch}.efi' -+ if os.path.exists(shim): -+ return shim - return None |