LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Arch Linux - Grub error (https://www.linuxquestions.org/questions/linux-software-2/arch-linux-grub-error-4175487307/)

Amanda_L 12-08-2013 01:46 PM

Arch Linux - Grub error
 
I'm trying to install Arch and I'm stuck at the following command:

Code:

grub-mkconfig -o /boot/grub/grub.cfg
Which gives me the following error.

Code:

Error: out of memory
Error: syntax error
Error: incorrect command
Error: syntax error
Syntax error at line 150
Syntax error are detected in generated grub file.
Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub/grub.cfg/new file attached.

Following a thread on ArchLinux's forums I can see that it might not get fixed soon https://bbs.archlinux.org/viewtopic....58176#p1358176

So, people are suggesting that we add the following lines to /etc/default/grub:

Code:

GRUB_DISABLE_SUBMENU=y
What could happen with that line of code? What side effects? What about after the grub is updated?

yancek 12-09-2013 08:32 AM

Quote:

What could happen with that line of code?
Grub Legacy and earlier releases of Grub2 had a menu in grub.cfg. The newer Grub2 has sub-menus under the main menu in some cases and changing your entry as suggested in /etc/default/grub would eliminate sub-menus and leave you with just one menu.

After updating Grub, the change would persist if you have this entry in /etc/default/grub.

I'm not really sure of the reasoning behind sub-menus, nor its advantages and disadvantages.
You forgot to post what is actually on line 150, the reported error line. I'm guessing it is: {

Amanda_L 12-09-2013 12:43 PM

That depends on which file we're talking about.

Germany_chris 12-09-2013 01:07 PM

I use syslinux IMHO it's simpler but seems to update more than GRUB.


All times are GMT -5. The time now is 09:00 AM.