Unable to install theme on UEFI based OS
gucio321 opened this issue · 9 comments
Hi there!
I've experienced a strange issue. I know that it isn't the perfect place to report that, but idk what to do 😄
I'm experiencing a problem with installing the themes (using both: install.sh and grub-customizer package) on GRUB in UEFI based OS.
I've 2 VMs, both are Fedora linux, first one a standard vm using Legacy BIOS, and the second, (created especially to debug this) with EFI firmware enabled. on bios it works perfectly, but executing install.sh on uefi system seems to have no effect on grub...
Does anyone know what to do with that?
It works well on my Fedora 43, what error massage did you have with EFI firmware enabled ?
hmm, its strange...
I get no errors - just doesn't work
Is the theme not work or can not boot in grub2?
it just didn't changed theme, but, let me test again since I thing I made it working...
well, the problem seems to be much more complex, I was able to install the theme on fresh installation of fedora 37 vm, but I'm still unable to do that on my host os, here is some more details about my system:
dnf list grub2
:
Installed Packages
grub2-common.noarch 1:2.06-58.fc37 @fedora
grub2-efi-ia32.x86_64 1:2.06-58.fc37 @fedora
grub2-efi-ia32-cdboot.x86_64 1:2.06-58.fc37 @fedora
grub2-efi-x64.x86_64 1:2.06-58.fc37 @fedora
grub2-efi-x64-cdboot.x86_64 1:2.06-58.fc37 @fedora
grub2-pc.x86_64 1:2.06-58.fc37 @fedora
grub2-pc-modules.noarch 1:2.06-58.fc37 @fedora
grub2-tools.x86_64 1:2.06-58.fc37 @fedora
grub2-tools-efi.x86_64 1:2.06-58.fc37 @fedora
grub2-tools-extra.x86_64 1:2.06-58.fc37 @fedora
grub2-tools-minimal.x86_64 1:2.06-58.fc37 @fedora
cat /etc/default/grub
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
#GRUB_TERMINAL_OUTPUT=console
GRUB_CMDLINE_LINUX="resume=UUID=7e5ce448-2087-45cb-921d-1abaac8e0a37 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
#GRUB_ENABLE_BLSCFG="true"
GRUB_FONT=/boot/grub2/fonts/unicode.pf2
GRUB_THEME="/usr/share/grub/themes/tela/theme.txt"
GRUB_GFXMODE=1920x1080,auto
output from grub2-mkconfig is
[root@fedora ~]# grub2-mkconfig -o /tmp/nothing-important
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 18.04.6 LTS on /dev/nvme0n1p7
Adding boot menu entry for UEFI Firmware Settings ...
done
do you have any idea?
PS don't ask why it says Found Ubuntu 18
😄 it is my fedora grub
Finally figured it out!
After inspecting both, the /boot/efi/EFI/fedora/grub.cfg and /tmp/nothing-important, I've noticed that the boot/efi file doesn't mention about theme at all (when /tmp/nothing-important does).
My assume is, that this utility outputed grub2-mkconfig into /boot/grub2/grub.cfg instead /boot/efi/EFI/fedora/grub.cfg somehow. Is it a bug and I should keep this issue open or you'd rather into closing for now?
Finally figured it out! After inspecting both, the /boot/efi/EFI/fedora/grub.cfg and /tmp/nothing-important, I've noticed that the boot/efi file doesn't mention about theme at all (when /tmp/nothing-important does).
My assume is, that this utility outputed grub2-mkconfig into /boot/grub2/grub.cfg instead /boot/efi/EFI/fedora/grub.cfg somehow. Is it a bug and I should keep this issue open or you'd rather into closing for now?
非常感谢,终于解决了。我也在EFI启动的ubuntu 22.04.3遇到了同样的问题,ubuntu中换成以下命令
sudo grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
sudo update-grub
就行了。
translate from en to zh by chatGPT
"Thank you very much, the issue has finally been resolved. I also encountered the same problem on Ubuntu 22.04.3 with EFI boot. I managed to fix it by using the following commands in Ubuntu:
sudo grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
sudo update-grub
These commands did the trick."
there was no reaction to that comment. I also think this should fix it, and the current script should deal with that. This issue should be closed
no, this project should fix grub path detection