Error saving grub with grub customizer

Asked by Kathie on 2016-06-14

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 f97b7124-828a-4d00-ad57-4fc4981fd375
else
  search --no-floppy --fs-uuid --set=root f97b7124-828a-4d00-ad57-4fc4981fd375
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 f97b7124-828a-4d00-ad57-4fc4981fd375
else
  search --no-floppy --fs-uuid --set=root f97b7124-828a-4d00-ad57-4fc4981fd375
fi
insmod jpeg
background_image -m stretch /home/kathie/ds92.jpeg
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
set color_normal=light-gray/black
set color_highlight=green/black
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f97b7124-828a-4d00-ad57-4fc4981fd375' {
 savedefault
 load_video
 set gfxpayload=keep
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='hd0,gpt7'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 f97b7124-828a-4d00-ad57-4fc4981fd375
 else
   search --no-floppy --fs-uuid --set=root f97b7124-828a-4d00-ad57-4fc4981fd375
 fi
 echo 'Loading Linux 4.4.13-1-MANJARO x64 ...'
 linux /boot/vmlinuz-4.4-x86_64 root=UUID=f97b7124-828a-4d00-ad57-4fc4981fd375 rw quiet splash resume=UUID=f9e97c9b-00d6-4c5b-9874-8d6e34a1b638
 echo 'Loading initial ramdisk ...'
 initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64.img
}
submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-f97b7124-828a-4d00-ad57-4fc4981fd375' {
 menuentry 'Manjaro Linux (Kernel: 4.4.13-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-1-MANJARO x64-advanced-f97b7124-828a-4d00-ad57-4fc4981fd375' {
 savedefault
  load_video
  set gfxpayload=keep
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd0,gpt7'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 f97b7124-828a-4d00-ad57-4fc4981fd375
  else
    search --no-floppy --fs-uuid --set=root f97b7124-828a-4d00-ad57-4fc4981fd375
  fi
  echo 'Loading Linux 4.4.13-1-MANJARO x64 ...'
  linux /boot/vmlinuz-4.4-x86_64 root=UUID=f97b7124-828a-4d00-ad57-4fc4981fd375 rw quiet splash resume=UUID=f9e97c9b-00d6-4c5b-9874-8d6e34a1b638
  echo 'Loading initial ramdisk ...'
  initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64.img
 }
 menuentry 'Manjaro Linux (Kernel: 4.4.13-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-1-MANJARO x64-fallback-f97b7124-828a-4d00-ad57-4fc4981fd375' {
  load_video
  set gfxpayload=keep
  insmod gzio
  insmod part_gpt
  insmod ext2
  set root='hd0,gpt7'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 f97b7124-828a-4d00-ad57-4fc4981fd375
  else
    search --no-floppy --fs-uuid --set=root f97b7124-828a-4d00-ad57-4fc4981fd375
  fi
  echo 'Loading Linux 4.4.13-1-MANJARO x64 ...'
  linux /boot/vmlinuz-4.4-x86_64 root=UUID=f97b7124-828a-4d00-ad57-4fc4981fd375 rw quiet splash resume=UUID=f9e97c9b-00d6-4c5b-9874-8d6e34a1b638
  echo 'Loading initial ramdisk ...'
  initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64-fallback.img
 }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###

menuentry "Windows 7" --class windows --class os $menuentry_id_option 'osprober-efi-86C8-9663' {
 savedefault
 insmod part_gpt
 insmod fat
 set root='hd0,gpt1'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 86C8-9663
 else
   search --no-floppy --fs-uuid --set=root 86C8-9663
 fi
 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+_proxy ###

if [ "${grub_platform}" == "pc" ]; then

fi
### END /etc/grub.d/60_memtest86+_proxy ###

Question information

Language:
English Edit question
Status:
Answered
For:
Grub Customizer Edit question
Assignee:
No assignee Edit question
Last query:
2016-06-14
Last reply:
2016-06-16

There's an empty if statement generated from the memtest86+ script

> if [ "${grub_platform}" == "pc" ]; then
>
> fi

This happens when you modify or remove the memtest entry. It happens only on specific distributions. It's a known bug but hard to fix.

Quickfix for you:
 - Click View -> Show placeholders
 - search for an entry named "(script code)" which is from script "memtest86+"
 - remove this entry

Then it should save successfully.

Can you help with this problem?

Provide an answer of your own, or ask Kathie for more information if necessary.

To post a message you must log in.