says configuration saved but effects are not active in boot menu

Bug #1505494 reported by Alex
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

Scripts can be deleted but options and background customizations do not take effect in the boot menu.

Example: No background in boot menu
Example 2: last selected OS option is disregarded even though it was checked and saved in grub customizer (first option is always selected even though another OS further down the list was last used)

PS: Grub customizer is installed on Fedora

Revision history for this message
LucMorizur (lucmorizur) wrote :

Hi;

I'm suffering the same bug. My configuration (uname -a) is:

Linux 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

(Ubuntu studio (XFCE 4.10) 14.04).

Actually /boot/grub/grub.cfg is not updated, now grub-customizer saves the configuration in /boot/grub/grub.cfg.new , which is of course not used at boot time.

I tried some apt-get update, apt-get upgrade, apt-get autoremove, and during this last command I got some "syntax error" messages about the grub config file, but unfortunately I did not copy this message, and now it doesn't appear any more of course :-/ .

Of course I could try to rename/boot/grub/grub.cfg.new as /boot/grub/grub.cfg , but, one should not do that :-/ ...

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

@LucMorizur isn't the error message showed inside of grub customizer? It should do that.

I can take a look at the resulting file when you're posting the contents of your /boot/grub/grub.cfg.new

Revision history for this message
LucMorizur (lucmorizur) wrote :
Download full text (13.9 KiB)

@Daniel Richter
Hi; many thanks for your answer.
No, I have no error message when launching Grub customizer. Yet if I try to close it without having made any change, it says that I should save my modifications before exiting. If then I choose to save and exit, I get a crash message for Grub customizer. (I chose to send a report but maybe you would details here? If yes which details?, I'm not too much experienced in this.) But if I save, then exit, as I always do usually, there is no crash.

To my opinion the problem started when udating Linux to 3.16.0-51; it was 3.16.0-50 before; files dates are relevant about that.

Please do ask for some more details if you need.

Thanks again for your involvment.

My /boot/grub/grub.cfg.new:

BEGIN----------------------- /boot/grub/grub.cfg.new ----------------------------

#
# 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 ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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="0"
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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 cc6a03fa-bfe1-4493-9e1d-1aeb753e7d5d
else
  search --no-floppy --fs-uuid --set=root cc6a03fa-bfe1-4493-9e1d-1aeb753e7d5d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1600x900
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=3
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=3
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --h...

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

The problem is, that there is script code inside of the submenu. Script code should always be on top level.

This is an odd behavior of the sticky placeholders feature. I'll fix it in the future.

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

Then, after saving it should work.

Revision history for this message
LucMorizur (lucmorizur) wrote :

Hi Daniel;

many thanks for your help. Indeed your recommandations fixed the issue. It is OK now, back to usual behaviour.

Please tell if you would like any more precision.

See you next bug ;-) !

--
Luc

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.