Grub-Customizer error

Bug #1561813 reported by Sastry Sishtla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grub Customizer
Confirmed
Undecided
Unassigned

Bug Description

Failed saving grub configuration!
Please take a look at the command line output below. If you think this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this.

failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.2.0-34-generic
Found initrd image: /boot/initrd.img-4.2.0-34-generic
Found linux image: /boot/vmlinuz-4.2.0-30-generic
Found initrd image: /boot/initrd.img-4.2.0-30-generic
Found linux image: /boot/vmlinuz-4.2.0-27-generic
Found initrd image: /boot/initrd.img-4.2.0-27-generic
Found linux image: /boot/vmlinuz-4.2.0-25-generic
Found initrd image: /boot/initrd.img-4.2.0-25-generic
Found linux image: /boot/vmlinuz-4.2.0-23-generic
Found initrd image: /boot/initrd.img-4.2.0-23-generic
Found linux image: /boot/vmlinuz-4.2.0-22-generic
Found initrd image: /boot/initrd.img-4.2.0-22-generic
Found linux image: /boot/vmlinuz-3.19.0-42-generic
Found initrd image: /boot/initrd.img-3.19.0-42-generic
Found Windows 10 (loader) on /dev/sda1
Found Windows NT/2000/XP on /dev/sdc1
Found linux image: /boot/vmlinuz-4.2.0-34-generic
Found initrd image: /boot/initrd.img-4.2.0-34-generic
Found linux image: /boot/vmlinuz-4.2.0-30-generic
Found initrd image: /boot/initrd.img-4.2.0-30-generic
Found linux image: /boot/vmlinuz-4.2.0-27-generic
Found initrd image: /boot/initrd.img-4.2.0-27-generic
Found linux image: /boot/vmlinuz-4.2.0-25-generic
Found initrd image: /boot/initrd.img-4.2.0-25-generic
Found linux image: /boot/vmlinuz-4.2.0-23-generic
Found initrd image: /boot/initrd.img-4.2.0-23-generic
Found linux image: /boot/vmlinuz-4.2.0-22-generic
Found initrd image: /boot/initrd.img-4.2.0-22-generic
Found linux image: /boot/vmlinuz-3.19.0-42-generic
Found initrd image: /boot/initrd.img-3.19.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 10 (loader) on /dev/sda1
Found Windows NT/2000/XP on /dev/sdc1
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 568
Syntax errors are detected in generated GRUB config 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.
done

Revision history for this message
Sastry Sishtla (sastrysvs) wrote :

grub configuration was updated along the system software update. From then I was unable to configure grub- to start my windows 10 as default OS

Revision history for this message
Sastry Sishtla (sastrysvs) wrote :
Revision history for this message
Daniel Richter (danielrichter2007) wrote :

I need your /boot/grub/grub.cfg.new

Revision history for this message
Sastry Sishtla (sastrysvs) wrote : RE: [Bug 1561813] Re: Grub-Customizer error
Download full text (3.3 KiB)

Thank you for your response and sorry for the delay in responding due to email landing in 'junk' folder.
Please find attached here with grub.cfg.new.

Thanks and regards
S Sishtla

> Date: Fri, 25 Mar 2016 13:06:56 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1561813] Re: Grub-Customizer error
>
> I need your /boot/grub/grub.cfg.new
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1561813
>
> Title:
> Grub-Customizer error
>
> Status in Grub Customizer:
> New
>
> Bug description:
> Failed saving grub configuration!
> Please take a look at the command line output below. If you think this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this.
>
> failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
> Generating grub configuration file ...
> Found linux image: /boot/vmlinuz-4.2.0-34-generic
> Found initrd image: /boot/initrd.img-4.2.0-34-generic
> Found linux image: /boot/vmlinuz-4.2.0-30-generic
> Found initrd image: /boot/initrd.img-4.2.0-30-generic
> Found linux image: /boot/vmlinuz-4.2.0-27-generic
> Found initrd image: /boot/initrd.img-4.2.0-27-generic
> Found linux image: /boot/vmlinuz-4.2.0-25-generic
> Found initrd image: /boot/initrd.img-4.2.0-25-generic
> Found linux image: /boot/vmlinuz-4.2.0-23-generic
> Found initrd image: /boot/initrd.img-4.2.0-23-generic
> Found linux image: /boot/vmlinuz-4.2.0-22-generic
> Found initrd image: /boot/initrd.img-4.2.0-22-generic
> Found linux image: /boot/vmlinuz-3.19.0-42-generic
> Found initrd image: /boot/initrd.img-3.19.0-42-generic
> Found Windows 10 (loader) on /dev/sda1
> Found Windows NT/2000/XP on /dev/sdc1
> Found linux image: /boot/vmlinuz-4.2.0-34-generic
> Found initrd image: /boot/initrd.img-4.2.0-34-generic
> Found linux image: /boot/vmlinuz-4.2.0-30-generic
> Found initrd image: /boot/initrd.img-4.2.0-30-generic
> Found linux image: /boot/vmlinuz-4.2.0-27-generic
> Found initrd image: /boot/initrd.img-4.2.0-27-generic
> Found linux image: /boot/vmlinuz-4.2.0-25-generic
> Found initrd image: /boot/initrd.img-4.2.0-25-generic
> Found linux image: /boot/vmlinuz-4.2.0-23-generic
> Found initrd image: /boot/initrd.img-4.2.0-23-generic
> Found linux image: /boot/vmlinuz-4.2.0-22-generic
> Found initrd image: /boot/initrd.img-4.2.0-22-generic
> Found linux image: /boot/vmlinuz-3.19.0-42-generic
> Found initrd image: /boot/initrd.img-3.19.0-42-generic
> Found memtest86+ image: /boot/memtest86+.elf
> Found memtest86+ image: /boot/memtest86+.bin
> Found Windows 10 (loader) on /dev/sda1
> Found Windows NT/2000/XP on /dev/sdc1
> error: syntax error.
> error: Incorrect command.
> error: syntax error.
> error: Incorrect command.
> error: syntax error.
> Syntax error at line 568
> Syntax errors are detected in generated GRUB config 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 f...

Read more...

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

You have script code inside of your submenu "Advanced options for Ubuntu". This is not valid syntax for grub. It's issued by a bad behavior of grub customizer - it shouldn't move script code into submenus.

You can fix it this way:
 - show placeholders (View -> show placeholders)
 - select the entry named "(script code)" inside of the submenu
 - move it out of the submenu

When you save the configuration, you shouldn't get the error message anymore.

Changed in grub-customizer:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.