Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Grub is not using the updated config after making changes (Read 1394 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Grub is not using the updated config after making changes

Hello everyone, I am having a weird problem with my grub config. For some reason after updating it with different methods (update-grub, grub-mkconfig command, and even grub-customizer) the config does not load the theme I set up along with linux-zen and linux-lts kernels on the list. I have looked around and can't seem to find an answer to this problem. This issue started right after an update to grub a while back but left it alone as it wasn't a big issue. Now I wanted to tackle it but with no luck. Does anyone have a clue on what can be done? I will upload an image of  the output of what  set gives on the command line.  My installation is also UEFI if that helps. Sorry if this a noob problem but I don't know what can be done at this point. Thanks for reading!

Re: Grub is not using the updated config after making changes

Reply #1
Hello,
Have you looked in /etc/default/grub ?

Re: Grub is not using the updated config after making changes

Reply #2
Yes I have the GRUB_THEME uncommented and the directory it points to does exist in the themes folder. Not sure why grub just ignores it unless for some reason its reading elsewhere.

Re: Grub is not using the updated config after making changes

Reply #3
Yes I have the GRUB_THEME uncommented and the directory it points to does exist in the themes folder. Not sure why grub just ignores it unless for some reason its reading elsewhere.
I'm using LTS (updated) and gave it a try.
I indicated the path to an image located in /home/user
After saving the change, I ran sudo update-grub
And it works.
I don't know if it can play, but the size of the image corresponds to the resolution of my monitor.
Code: [Select]
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/home/jp/Images/2020-04-26_09-21-12.png"
#GRUB_THEME="/usr/share/grub/themes/artix/theme.txt"

Re: Grub is not using the updated config after making changes

Reply #4
I tried it with a theme and a png file on my home folder and it still doesn't budge. I took a picture of my thinkpad's set output and noticed that it has an extra line with the theme in place. I don't know if the msdos1 and msdos2 is causing something (sorry for my ignorance if that is not the case).

Re: Grub is not using the updated config after making changes

Reply #5
I tried it with a theme and a png file on my home folder and it still doesn't budge.
I'm not a grub expert.

Can you provide a copy of your /etc/default/grub file to compare to what I have ?
Or :
cat /etc/default/grub

Re: Grub is not using the updated config after making changes

Reply #6
Sure, here is what cat returned:

# GRUB boot loader configuration

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Artix"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="menu"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE="auto"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
export GRUB_COLOR_NORMAL="light-blue/black"
export GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/home/los/Pictures/holyTrees.png"
#GRUB_THEME="/boot/grub/themes/breeze/theme.txt"
#GRUB_THEME="/home/los/breeze/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU="y"

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER="false"

Re: Grub is not using the updated config after making changes

Reply #7
Not much difference.
However, you have:
Code: [Select]
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE="auto"

And me :
Code: [Select]
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="1680x1050x8"
GRUB_GFXMODE="1024x768,800x600"

*******
Code: [Select]
cat /etc/default/grub
GRUB_DEFAULT="0"
GRUB_TIMEOUT="1"
GRUB_DISTRIBUTOR="Artix (sda2)"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=3dfe4cce-a8f2-44ec-8f1d-3479072db5de"
GRUB_CMDLINE_LINUX="net.ifnames=0"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT="5"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="1680x1050x8"
GRUB_GFXMODE="1024x768,800x600"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
export GRUB_COLOR_NORMAL="light-blue/black"
export GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/usr/share/grub/themes/artix/theme.txt"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

GRUB_SAVEDEFAULT="true"

GRUB_DISABLE_LINUX_RECOVERY="true"

GRUB_DISABLE_OS_PROBER="false"

********
Code: [Select]

neofetch
                   '                      jp@jp-artix
                  'o'                     -----------
                 'ooo'                    OS: Artix Linux x86_64
                'ooxoo'                   Kernel: 6.1.32-1-lts
               'ooxxxoo'                  Uptime: 2 hours, 53 mins
              'oookkxxoo'                 Packages: 1468 (pacman)
             'oiioxkkxxoo'                Shell: bash 5.1.16
            ':;:iiiioxxxoo'               Resolution: 1920x1080
               `'.;::ioxxoo'              DE: Xfce
          '-.      `':;jiooo'             WM: Xfwm4
         'oooio-..     `'i:io'            WM Theme: Daloa
        'ooooxxxxoio:,.   `'-;'           Theme: Adwaita [GTK2/3]
       'ooooxxxxxkkxoooIi:-.  `'          Icons: oxygen [GTK2], matefaenzadark 
      'ooooxxxxxkkkkxoiiiiiji'            Terminal: xfce4-terminal
     'ooooxxxxxkxxoiiii:'`     .i'        Terminal Font: Roboto Mono 12
    'ooooxxxxxoi:::'`       .;ioxo'       CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
   'ooooxooi::'`         .:iiixkxxo'      GPU: AMD ATI Radeon 540/540X/550/550X
  'ooooi:'`                `'';ioxxo'     Memory: 2686MiB / 15902MiB

I give way to the specialists...


Re: Grub is not using the updated config after making changes

Reply #8
Yeah the auto came from grub-customizer and it worked before the update (it's the same on my thinkpad and it works). I'm going to mess around the resolutions and see if something happens. Maybe someone has some insight on this. The last thing I can do is probably rebuild grub but that might be overkill. Thanks for taking time to help out.

Re: Grub is not using the updated config after making changes

Reply #9
Not answering
I have similar or related problem i.e. the font size not taken effect when the /boot/grub/grub.cfg's line pointing the font size, indicated directly on the file name, is being changed

file name path does exist as reference by that line though haven't checked, and don't know how to, the file is correct in sizing the font image

Re: Grub is not using the updated config after making changes

Reply #10
Have you tried redoing grub-install, you will need to figure out the correct args for your particular system:
https://archlinux.org/news/grub-bootloader-upgrade-and-configuration-incompatibilities/
Another possibility is whether you might be booting using the grub from another partition or OS in which case you would need to make the changes there.

Re: Grub is not using the updated config after making changes

Reply #11
I haven't tried redoing grub-install but it seems that might be the only option. I will check it out and see if does the trick.

Re: Grub is not using the updated config after making changes

Reply #12
One little completion if I may, something that arch wiki page is imo ommitting, it's that on simple uefi installs, just running 'grub-install' should work to autodetect everything.
Spoiler (click to show/hide)

Re: Grub is not using the updated config after making changes

Reply #13
One little completion if I may, something that arch wiki page is imo ommitting, it's that on simple uefi installs, just running 'grub-install' should work to autodetect everything.
I just tested: it actually works !  8)

 

Re: Grub is not using the updated config after making changes

Reply #14
I am happy to say that doing grub-install worked. I wonder why it was necessary to rebuild it but I will take it. Thanks everyone for the help.