Error saving to Grub

Bug #1853896 reported by Greg Dance
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

I have changed the boot priority order of OS before this is reported.

btw, I also have Refind installed and to get to boot into Macos I have to use Grub.

ERROR-

failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-69-generic
Found initrd image: /boot/initrd.img-4.15.0-69-generic
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-69-generic
Found initrd image: /boot/initrd.img-4.15.0-69-generic
File descriptor 9 (/proc/2079/mounts) leaked on lvs invocation. Parent PID 7430: /bin/sh
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 325
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
Greg Dance (gregorydance) wrote :

I decided to use the Revert button and then retry save, this produced the following errors.

ailed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-70-generic
Found initrd image: /boot/initrd.img-4.15.0-70-generic
Found linux image: /boot/vmlinuz-4.15.0-69-generic
Found initrd image: /boot/initrd.img-4.15.0-69-generic
File descriptor 9 (/proc/2079/mounts) leaked on lvs invocation. Parent PID 9566: /bin/sh
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 314
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
Greg Dance (gregorydance) wrote :
Revision history for this message
Greg Dance (gregorydance) wrote :
Revision history for this message
Daniel Richter (danielrichter2007) wrote :

The error comes from this line:

menuentry "Macos" { exit {

... which is imported from /etc/40_custom.

Did you write this line yourself or is it somehow corrupted by grub customizer?

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.