In my cfg file I see: set theme=$prefix/themes/custom.config
but in my /grub2/themes/ folder I have no such file.
Microsoft Windows [Version 10.0.22631.3155] (c) Microsoft Corporation. All rights reserved. C:\grub2\themes>dir Volume in drive C is OS Volume Serial Number is FAA1-3F54 Directory of C:\grub2\themes 03/02/2024 07:19 PM <DIR> . 03/02/2024 07:19 PM <DIR> .. 03/02/2024 06:21 PM <DIR> backgrounds 03/02/2024 06:21 PM <DIR> common 03/02/2024 06:21 PM 1,247,803 custom.background.png 03/02/2024 06:21 PM 1,866 custom.config.32.bios.txt 03/02/2024 06:21 PM 1,866 custom.config.32.efi.txt 03/02/2024 06:21 PM 1,866 custom.config.64.bios.txt 03/02/2024 06:21 PM 1,866 custom.config.64.efi.txt 03/02/2024 06:21 PM 861 custom.options.txt 03/02/2024 06:21 PM 97,514 custom.screenshot.jpg 03/02/2024 06:44 PM <DIR> icons 03/02/2024 06:21 PM <DIR> master 03/02/2024 06:21 PM <DIR> options.local 03/02/2024 06:21 PM <DIR> options.standard 7 File(s) 1,353,642 bytes 8 Dir(s) 108,355,031,040 bytes free C:\grub2\themes>
What should the "set theme" parm be set to?
Hey Ed,
Look at the very next line in your grub.cfg file.
The if statement sets up the $theme variable with the bit and bios suffixes.
I'm assuming that your grub.cfg file was generated by running Grub2Win.
Dave
"Look at the very next line in your grub.cfg file."
# end-grub2win-user-section ********************************************************
"I'm assuming that your grub.cfg file was generated by running Grub2Win."
Yup.
# Created on Saturday March 2, 2024 at 18:21:58 # # Generated by Grub2Win Version 2.3.8.6 Build 1650 from directory C:\grub2
Please send me your Grub2Win diagnostics.
The theme code line you mentioned normally appears early in the automatically generated section of grub.cfg, not the user section.
I cannot debug your user code one line at a time without seeing the surrounding lines.
I need the complete files from your diagnostics to see where you have gone wrong in the user section.
Thanks again,
I already found the answer, unfortunately this forum blocked it.
Just curious, what was the answer and how did this forum block it.
If posts are being blocked, I want to report it to SourceForge.
Please advise.
Thanks,
Hi Dave,
The answer revolved around these grub.cfg lines: (#44-46)
set theme=$prefix/themes/custom.config if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.$grub2win_efibits.efi.txt ; else set theme=$theme.$grub2win_procbits.bios.txt ; fi export theme
Line 45 is a long if statement. Normally with if statements that include an else I code them like this:
if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.$grub2win_efibits.efi.txt else set theme=$theme.$grub2win_procbits.bios.txt fi
Which is clearer to read and understand. No diagnostics file needed.
Why did you code the if as a single line?
Ed
Log in to post a comment.
In my cfg file I see: set theme=$prefix/themes/custom.config
but in my /grub2/themes/ folder I have no such file.
What should the "set theme" parm be set to?
Last edit: Ed P 2024-03-03
Hey Ed,
Look at the very next line in your grub.cfg file.
The if statement sets up the $theme variable with the bit and bios suffixes.
I'm assuming that your grub.cfg file was generated by running Grub2Win.
Dave
"Look at the very next line in your grub.cfg file."
# end-grub2win-user-section ********************************************************
"I'm assuming that your grub.cfg file was generated by running Grub2Win."
Yup.
Last edit: Ed P 2024-03-03
Hey Ed,
Please send me your Grub2Win diagnostics.
The theme code line you mentioned normally appears early in the automatically generated section of grub.cfg, not the user section.
I cannot debug your user code one line at a time without seeing the surrounding lines.
I need the complete files from your diagnostics to see where you have gone wrong in the user section.
Thanks again,
Dave
I already found the answer, unfortunately this forum blocked it.
Hey Ed,
Just curious, what was the answer and how did this forum block it.
If posts are being blocked, I want to report it to SourceForge.
Please advise.
Thanks,
Dave
Hi Dave,
The answer revolved around these grub.cfg lines: (#44-46)
Line 45 is a long if statement. Normally with if statements that include
an else I code them like this:
Which is clearer to read and understand. No diagnostics file needed.
Why did you code the if as a single line?
Ed
Last edit: Ed P 2024-03-04
Last edit: Ed P 2024-03-04