Comments (11)
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.
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.
@sardus-X It's not because of uefi mode.
- backup the file
/etc/grub.d/30_os-prober
. - open this file with editor and add some lines like 5df5764.
- update grub by running
sudo update-grub
.
from grub2-theme-vimix.
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.
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.
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.
@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.
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
grub.zip
from grub2-theme-vimix.
@sardus-X move the backup file to another folder.
from grub2-theme-vimix.
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?)
from grub2-theme-vimix.
@sardus-X
Yes, you also need to edit the /etc/grub.d/30_os-prober
file.
from grub2-theme-vimix.
Related Issues (11)
- What screen resolution? HOT 6
- Source has been updated HOT 4
- How to config the antialias fonts? HOT 1
- Update grub-mkconfig command for Fedora 29 in README
- Missing icon HOT 1
- No "select" directory HOT 2
- I think you should put a nice font into vimix HOT 1
- Jump on item selection HOT 4
- Grub gives an error…
- License
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grub2-theme-vimix.