Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install theme on UEFI based OS #184

Open
gucio321 opened this issue Nov 8, 2022 · 9 comments
Open

Unable to install theme on UEFI based OS #184

gucio321 opened this issue Nov 8, 2022 · 9 comments

Comments

@gucio321
Copy link

gucio321 commented Nov 8, 2022

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?

@vinceliuice
Copy link
Owner

It works well on my Fedora 43, what error massage did you have with EFI firmware enabled ?

@gucio321
Copy link
Author

gucio321 commented Nov 9, 2022

hmm, its strange...
I get no errors - just doesn't work

@vinceliuice
Copy link
Owner

Is the theme not work or can not boot in grub2?

@gucio321
Copy link
Author

gucio321 commented Nov 9, 2022

it just didn't changed theme, but, let me test again since I thing I made it working...

@gucio321
Copy link
Author

gucio321 commented Nov 9, 2022

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

@gucio321
Copy link
Author

gucio321 commented Nov 9, 2022

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?

@ICLHC
Copy link

ICLHC commented Nov 26, 2023

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."

@boredsquirrel
Copy link
Contributor

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

@gucio321
Copy link
Author

no, this project should fix grub path detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants