Bug#756002: grub-efi-amd64: Changes EFI boot manager settings

Julian Andres Klode jak at debian.org
Fri Jul 25 11:47:05 UTC 2014


Package: grub-efi-amd64
Version: 2.02~beta2-11
Severity: normal

I have both gummiboot and grub installed on my laptop. Whenever grub is updated,
it sets itself as the default bootloader in the EFI variables. I do not want
grub to be the default bootloader, it's only there as a fallback if I mess up
gummiboot.

It should only do this on the initial install, it's counter productive to
set the active boot entry on every upgrade.


-- Package-specific info:

*********************** WARNING grub-setup left core.img in filesystem

*********************** BEGIN /proc/mounts
/dev/sdb2 / ext4 rw,noatime,journal_checksum,journal_async_commit,errors=remount-ro,commit=600,data=ordered 0 0
/dev/sdb3 /home ext4 rw,noatime,journal_checksum,journal_async_commit,commit=600,data=ordered 0 0
/dev/sdb1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_20052845510C6160C9F6-0:0
(hd1)	/dev/disk/by-id/ata-HGST_HTS725050A7E630_TF755AWHJ0AGDM
(hd2)	/dev/disk/by-id/ata-PLEXTOR_PX-128M5M_P02315109046
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# 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 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_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
else
  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
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=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  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
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
else
  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dd840eac-0283-45e9-8f04-ef33f516d29d' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
	else
	  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
	fi
	echo	'Linux 3.14-2-amd64 wird geladen …'
	linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=dd840eac-0283-45e9-8f04-ef33f516d29d ro  quiet i915.i915_enable_fbc=0 i915.i915_enable_rc6=7 i915.lvds_downclock=1 acpi_osi="!Windows 2012" init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-3.14-2-amd64
}
submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-dd840eac-0283-45e9-8f04-ef33f516d29d' {
	menuentry 'Debian GNU/Linux, mit Linux 3.14-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-advanced-dd840eac-0283-45e9-8f04-ef33f516d29d' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
		else
		  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
		fi
		echo	'Linux 3.14-2-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=dd840eac-0283-45e9-8f04-ef33f516d29d ro  quiet i915.i915_enable_fbc=0 i915.i915_enable_rc6=7 i915.lvds_downclock=1 acpi_osi="!Windows 2012" init=/lib/systemd/systemd
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-recovery-dd840eac-0283-45e9-8f04-ef33f516d29d' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
		else
		  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
		fi
		echo	'Linux 3.14-2-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=dd840eac-0283-45e9-8f04-ef33f516d29d ro single 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-2-amd64
	}
	menuentry 'Debian GNU/Linux, mit Linux 3.14-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-1-amd64-advanced-dd840eac-0283-45e9-8f04-ef33f516d29d' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
		else
		  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
		fi
		echo	'Linux 3.14-1-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-1-amd64 root=UUID=dd840eac-0283-45e9-8f04-ef33f516d29d ro  quiet i915.i915_enable_fbc=0 i915.i915_enable_rc6=7 i915.lvds_downclock=1 acpi_osi="!Windows 2012" init=/lib/systemd/systemd
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-1-amd64-recovery-dd840eac-0283-45e9-8f04-ef33f516d29d' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
		else
		  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
		fi
		echo	'Linux 3.14-1-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-1-amd64 root=UUID=dd840eac-0283-45e9-8f04-ef33f516d29d ro single 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-1-amd64
	}
}

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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
	else
	  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
	else
	  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
	else
	  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint='hd2,gpt2'  dd840eac-0283-45e9-8f04-ef33f516d29d
	else
	  search --no-floppy --fs-uuid --set=root dd840eac-0283-45e9-8f04-ef33f516d29d
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jul 25 13:42 ata-HGST_HTS725050A7E630_TF755AWHJ0AGDM -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 25 13:42 ata-HGST_HTS725050A7E630_TF755AWHJ0AGDM-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 25 13:42 ata-HGST_HTS725050A7E630_TF755AWHJ0AGDM-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Jul 25 13:42 ata-PLEXTOR_PX-128M5M_P02315109046 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 25 13:42 ata-PLEXTOR_PX-128M5M_P02315109046-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 25 13:42 ata-PLEXTOR_PX-128M5M_P02315109046-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 25 13:42 ata-PLEXTOR_PX-128M5M_P02315109046-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Jul 25 13:42 wwn-0x5000cca77fdc564a -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 25 13:42 wwn-0x5000cca77fdc564a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 25 13:42 wwn-0x5000cca77fdc564a-part2 -> ../../sda2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jul 25 13:42 0F5F-6148 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 25 13:42 32e8426b-99b1-42e2-b05c-c4bb68c5c37c -> ../../sdb3
lrwxrwxrwx 1 root root 10 Jul 25 13:42 b9466f06-53b2-4ab9-9050-30e938364cc9 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul 25 13:42 dd840eac-0283-45e9-8f04-ef33f516d29d -> ../../sdb2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (980, 'unstable'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-efi-amd64 depends on:
ii  debconf [debconf-2.0]  1.5.53
ii  grub-common            2.02~beta2-11
ii  grub-efi-amd64-bin     2.02~beta2-11
ii  grub2-common           2.02~beta2-11
ii  ucf                    3.0030

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information excluded

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.



More information about the Pkg-grub-devel mailing list