hartwork / grub2-theme-preview

:city_sunrise: Preview a full GRUB 2.x theme (or just a background image) using KVM / QEMU
https://pypi.org/project/grub2-theme-preview/
327 stars 11 forks source link

ERROR: [Errno 2] GRUB platform directory "/usr/lib/grub/x86_64-efi" not found #302

Closed thekarananand closed 1 week ago

thekarananand commented 1 month ago

i am using fedora 40

image

image

hartwork commented 1 month ago

Hi @thekarananand, grub2-theme-preview looks for path /sys/firmware/efi to determine whether your hard is EFI or not. So that needs sysfs mounted at /sys, e.g.:

# mount | grep "/sys "
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

Could you check if you have /sys mounted and file /sys/firmware/efi available?

PS: The related code is… https://github.com/hartwork/grub2-theme-preview/blob/c973077c413cacd27bbece82e415ea257deabdd6/grub2_theme_preview/__main__.py#L356-L365 …if curious.

hartwork commented 1 month ago

Could you check if you have /sys mounted and file /sys/firmware/efi available?

@thekarananand any news?

hartwork commented 1 week ago

Closing for no reply…