Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[Solved] Help with Grub Customizer not Saving Configurations Correctly

Message
Author
User avatar
male
Forum Regular
Forum Regular
Posts: 287
Joined: Thu Jan 23, 2014 8:38 am

Re: Help with Grub Customizer not Saving Configurations Correctly

#31 Post by male » Sat Oct 20, 2018 5:58 am

fehlix wrote: configfile /sourcing ... grub.cfg :
This loads into the current running grub another grub-menu (grub.cfg).

The difference: As long as you have similar grub-versions this appear to behave identical.

Code: Select all

...
configfile /boot/grub/grub.cfg
...
It's quite simple
"configfile" means to stick with the example of @rej:

Its main bootloader from MX to sda3 is instructed to use the
configuration (/boot/grub/grub.cfg) from antiX17.2 to sda7 to load.

Different grub versions do not play a role. It is simple and efficient.
What I can't prove is the UEFI, because I don't own such a machine. However, this should work the same way if the UEFI installation on sda7 was done correctly. The main bootloader uses the grub.cfg of sda7.

None of this is new and not since yesterday. It is correct that an update-grub in the main boot loader sda3 takes longer than 30 seconds.
I already had 8 minutes with me, because he has to "collect" the data of ALL distributions via his os-prober.
Male is the capital of the Maldives and its wonderful people.

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3419
Joined: Sun May 27, 2007 5:37 am

Re: Help with Grub Customizer not Saving Configurations Correctly

#32 Post by asqwerth » Sat Oct 20, 2018 6:13 am

male wrote:
Sat Oct 20, 2018 5:58 am
...Its main bootloader from MX to sda3 is instructed to use the
configuration (/boot/grub/grub.cfg) from antiX17.2 to sda7 to load.

Different grub versions do not play a role. It is simple and efficient.
What I can't prove is the UEFI, because I don't own such a machine. However, this should work the same way if the UEFI installation on sda7 was done correctly. The main bootloader uses the grub.cfg of sda7.

None of this is new and not since yesterday. It is correct that an update-grub in the main boot loader sda3 takes longer than 30 seconds.
I already had 8 minutes with me, because he has to "collect" the data of ALL distributions via his os-prober.
My PC is old school MBR boot, not UEFI, but in my custom menu entries, I use chainloader and multiboot command interchangeably. Doesn't seem to make any difference.

And with so many different distros on my system, I'm sure I have many different grub versions.

So far I've not had any issues with my custom entries, so I'm not really bothered to investigate further. It's so much more convenient to have custom entries loading the grub.cfg of the target distro, than having to update grub in the main grub distro all the time because like you said, it takes very long.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1977
Joined: Wed Apr 11, 2018 5:09 pm

Re: Help with Grub Customizer not Saving Configurations Correctly

#33 Post by fehlix » Sat Oct 20, 2018 8:12 am

asqwerth wrote:
Sat Oct 20, 2018 5:06 am
But whether I use my configfile entry or your multiboot one, the grub menu that appears for Neon is the old one, and the new grub theme I applied just didn't register. I also have a chainloader menu entry for Neon, still no change in grub theme. Maybe they did something to it....
This

Code: Select all

echo GRUB_THEME=/boot/grub/themes/StylishDark/theme.txt | sudo tee /etc/default/grub.d/99_zz-grub-theme.cfg
sudo update-grub
would make a theme to be recognised in Neon and will overload the existing installed default theme setup in /etc/default/grub.d/99_breeze-grub.cfg
:puppy:

EDIT: added update-grub
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Forum Regular
Forum Regular
Posts: 396
Joined: Tue Apr 10, 2018 5:07 pm

Re: Help with Grub Customizer not Saving Configurations Correctly

#34 Post by oops » Sat Oct 20, 2018 8:39 am

fehlix wrote:
Sat Oct 20, 2018 5:12 am
oops wrote:
Sat Oct 20, 2018 4:56 am

Code: Select all

#/etc/grub.d/proxifiedScripts/custom
...
Your approach is based on functionality provided by grub-customizer.
Which might be fine as long as you have a working grub-customizer. :eek:

In addtion setting root through a "fixed" device-name like set root=(hd0,10),
might break as soon as you plugin another SATA device, as those
device names will be generated during boot and might change.
:snail:
Yes but for those, it's only/mostly for a frugal installs so it does not matter, and for the others I use UUID.
PS: No, I do not use grub-customizer (except one time for a test) and I modify this file by hand now, like your custom.cfg.
Maybe I can simply copy/move /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg to /boot/grub/custom.cfg for the exactly same effect.

Code: Select all

cp /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg
#then
rm /etc/grub.d/proxifiedScripts/custom
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1977
Joined: Wed Apr 11, 2018 5:09 pm

Re: Help with Grub Customizer not Saving Configurations Correctly

#35 Post by fehlix » Sat Oct 20, 2018 9:09 am

oops wrote:
Sat Oct 20, 2018 8:39 am
No, I do not use grub-customizer (except one time for a test) and I modify this file by hand now, like your custom.cfg.
Maybe I can simply copy/move /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg to /boot/grub/custom.cfg for the exactly same effect.

Code: Select all

cp /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg
#then
rm /etc/grub.d/proxifiedScripts/custom
Well, /etc/grub.d/proxifiedScripts/custom is used by grub-customizer,
if you would click "restore/reset" within grub-customizer all those are gone.
Yes, better place it into /boot/grub/custom.cfg
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Forum Regular
Forum Regular
Posts: 396
Joined: Tue Apr 10, 2018 5:07 pm

Re: Help with Grub Customizer not Saving Configurations Correctly

#36 Post by oops » Sat Oct 20, 2018 12:05 pm

fehlix wrote:
Sat Oct 20, 2018 9:09 am
oops wrote:
Sat Oct 20, 2018 8:39 am
No, I do not use grub-customizer (except one time for a test) and I modify this file by hand now, like your custom.cfg.
Maybe I can simply copy/move /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg to /boot/grub/custom.cfg for the exactly same effect.

Code: Select all

cp /etc/grub.d/proxifiedScripts/custom /boot/grub/custom.cfg
#then
rm /etc/grub.d/proxifiedScripts/custom
update-grub
Well, /etc/grub.d/proxifiedScripts/custom is used by grub-customizer,
if you would click "restore/reset" within grub-customizer all those are gone.
Yes, better place it into /boot/grub/custom.cfg
Thank you Fehlix and Asqwerth, I have applied your recommendation with success (to be free of grub-customizer, in case of) and to fit the /etc/grub.d/41_custom standard process.
Last edited by oops on Sat Oct 20, 2018 12:14 pm, edited 1 time in total.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3419
Joined: Sun May 27, 2007 5:37 am

Re: Help with Grub Customizer not Saving Configurations Correctly

#37 Post by asqwerth » Sat Oct 20, 2018 12:13 pm

fehlix wrote:
Sat Oct 20, 2018 8:12 am
This

Code: Select all

echo GRUB_THEME=/boot/grub/themes/StylishDark/theme.txt | sudo tee /etc/default/grub.d/99_zz-grub-theme.cfg
sudo update-grub
would make a theme to be recognised in Neon and will overload the existing installed default theme setup in /etc/default/grub.d/99_breeze-grub.cfg
:puppy:

EDIT: added update-grub
Thanks, fehlix.

I'll try this when I have some time, probably after Tuesday.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

rej
Forum Regular
Forum Regular
Posts: 160
Joined: Thu Mar 09, 2017 11:11 pm

Re: Help with Grub Customizer not Saving Configurations Correctly

#38 Post by rej » Sun Oct 21, 2018 5:09 pm

fehlix-
Thank you - this worked - no more delay on startup and Grub nicely cleaned up!

Asqwerth-
It's worth plenty - thanks for showing this to me. Good reference - all your posts!

You have all taken the time to provide a wealth of nicely laid out information, that will be very helpful in using any of the options, including installing the bootloader on antiX [caprea] which seems to work pretty well also. Experimenting on several test devices.

For the time being, all set, as there is a tidier boot menu and a resolve for the swap delay.

I appreciate it very much.

Thanks everyone who has jumped in and contributed to this!

Post Reply

Return to “Software / Configuration”