GithubHelp home page GithubHelp logo

Comments (11)

Se7endAY avatar Se7endAY commented on July 30, 2024

You can find out the reason of why logo of linux mint is not correct in /etc/default/grub.d/50_linuxmint.cfg.

Solution

Open /boot/grub/grub.cfg with editor, and you will find some lines started with 'menuentry'. modify the value of --class option.

Example:
(before) menuentry 'Linux Mint 18.2 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option

(after) menuentry 'Linux Mint 18.2 Cinnamon 64-bit' --class linux-mint --class gnu-linux --class gnu --class os $menuentry_id_option

from grub2-theme-vimix.

sardus-X avatar sardus-X commented on July 30, 2024

I have verified that in the /boot/grub/grub.cfg file the value of the --class option is "ubuntu" for linux mint distribution (main) and "gnu-linux" for all other distributions.
Is there a way to edit the /boot/grub/grub.cfg file (as You suggest) editing the /etc/default/grub file?
This issue only applies to uefi mode installations?

from grub2-theme-vimix.

Se7endAY avatar Se7endAY commented on July 30, 2024

@sardus-X It's not because of uefi mode.

  1. backup the file /etc/grub.d/30_os-prober.
  2. open this file with editor and add some lines like 5df5764.
  3. update grub by running sudo update-grub.

from grub2-theme-vimix.

sardus-X avatar sardus-X commented on July 30, 2024

open this file with editor and add some lines like 5df5764.
Excuse me, i would like to make sure to understand well: do you mean to only "add" the three "green" lines
+ CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')"
+
+menuentry '$(echo "$OS $onstr" | grub_quote)' $CLASS --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
Or the third one is a line replacing the existing one?

from grub2-theme-vimix.

Se7endAY avatar Se7endAY commented on July 30, 2024

@sardus-X

Add CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')" to your file before the line gettext_printf "Found %s on %s\n" "${LONGNAME}" "${DEVICE}" >&2.

Replace
menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
with
menuentry '$(echo "$OS $onstr" | grub_quote)' $CLASS --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {

from grub2-theme-vimix.

sardus-X avatar sardus-X commented on July 30, 2024

I tested with linux mint 18.2 in vmware: edited the /etc/grub.d/30_os -prober file and updated the grub file but it looks like it has not changed the situation. The grub menu works but the icon is still Ubuntu and in the grub.cfg file the value of the --class option is "ubuntu" too

from grub2-theme-vimix.

Se7endAY avatar Se7endAY commented on July 30, 2024

@sardus-X
1.Open the file /etc/grub.d/10_linux.
Replace
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
with
CLASS="--class linux-mint ${CLASS}"

2.Update grub.

from grub2-theme-vimix.

sardus-X avatar sardus-X commented on July 30, 2024

After editing the /etc/grub.d/10_linux file seems to have duplicated the grub menu, however in order to better explain it I attached the grub menu image and the file /boot/grub/grub.cfg
cattura
grub.zip

from grub2-theme-vimix.

Se7endAY avatar Se7endAY commented on July 30, 2024

@sardus-X move the backup file to another folder.

from grub2-theme-vimix.

sardus-X avatar sardus-X commented on July 30, 2024

moved all backup files (/etc/grub.d/30_os-prober; /etc/grub.d/10_linux) to another folder but unfortunately no changes.
Edit: restored the original /etc/grub.d/30_os-prober file (it is correct or must be both edited?) and after grub update It looks like it works..:)
It could also works with multiple distributions on a multiboot system (as in my case?)
screen2

from grub2-theme-vimix.

Se7endAY avatar Se7endAY commented on July 30, 2024

@sardus-X
Yes, you also need to edit the /etc/grub.d/30_os-prober file.

from grub2-theme-vimix.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.