The new Grub configuration cannot be saved
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grub Customizer |
New
|
Undecided
|
Unassigned |
Bug Description
In Linux Mint 18 "Sarah" Cinnamon x64 I get the following error when trying to save my customized version of grub.cfg:
<code>failed running 'grub-mkconfig -o "/boot/
Generating grub configuration file ...
using custom appearance settings
Found background image: /media/roger/Data/0 - Linux/Boot tga's, & Login Face/BlueEyeGir
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
File descriptor 9 (/proc/5723/mounts) leaked on lvs invocation. Parent PID 8549: /bin/sh
Found Windows 7 (loader) on /dev/sda1
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 342
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/
done<code>
I'm attaching the text above, the grub.cfg file and the grub.cfg.new files as a .zip file
Any help with this bug will be much appreciated, thanks.
It's the old known problem of /etc/grub. d/05_debian_ theme which is not quoting the background image path in any way. It's not a bug of grub customizer, it's a bug of debians version of grub2.
Make sure your selected background image path has no spaces, no & and no '.
Another problem that will come up: d/06_mint_ theme. This overwrites selected colors. So better remove it or disable its "script code" entry using grub customizer (previously show these at View -> Show placeholders).
There's a /etc/grub.