Bug#773092: grub-efi-amd64: grub efi installation failure

Ritesh Raj Sarraf rrs at debian.org
Sun Dec 14 08:21:39 UTC 2014


Package: grub-efi-amd64
Version: 2.02~beta2-18
Severity: important

On debconf prompt, grub-efi-amd64 asked my if I would want to force
install grub onto the EFI partition. I said yes, and it failed...


Setting up libwebkitgtk-3.0-0:amd64 (2.4.7-3) ...
Setting up libpackagekit-glib2-18:amd64 (1.0.1-2) ...
Setting up grub-common (2.02~beta2-18) ...
Setting up grub2-common (2.02~beta2-18) ...
Setting up grub-efi-amd64-bin (2.02~beta2-18) ...
Setting up grub-efi-amd64 (2.02~beta2-18) ...
Installing for x86_64-efi platform.
grub-install: error: cannot open `/boot/efi/EFI/BOOT/BOOTX64.EFI': File
exists.
Failed: grub-install --target=x86_64-efi --force-extra-removable
WARNING: Bootloader is not properly installed, system may not be
bootable
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
Found Grml ISO image: /boot/grml/grml64-full_2014.03.iso
Found Grml ISO image: /boot/grml/grml64-small_2014.03.iso
done
Setting up grub-efi (2.02~beta2-18) ...
Setting up packagekit (1.0.1-2) ...
Reloading dbus configuration (via systemctl): dbus.service.
Setting up packagekit-tools (1.0.1-2) ...
Setting up python-astroid (1.2.1-3) ...
Processing triggers for libc-bin (2.19-13) ...
                                         
Current status: 0 updates [-12].



Looking at that path:

rrs at learner:~$ ls /boot/efi/EFI/BOOT/BOOTX64.EFI
ls: cannot access /boot/efi/EFI/BOOT/BOOTX64.EFI: No such file or
directory
13:49 ♒♒♒   ☹  => 2  
rrs at learner:~$ ls /boot/efi/EFI/BOOT/bootx64.efi 
/boot/efi/EFI/BOOT/bootx64.efi*
13:49 ♒♒♒  ☺ 

/boot/efi is mounted as:

/dev/sda2 on /boot/efi type vfat
(rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/LocalCrypt-ROOT / ext4 rw,relatime,errors=remount-ro,commit=600,data=writeback 0 0
/dev/sda6 /boot ext4 rw,relatime,commit=600,data=ordered 0 0
/dev/sda2 /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/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='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
else
  search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
fi
    font="/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_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='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
else
  search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
fi
insmod png
if background_image /grub/.background_cache.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-d8469364-aa4b-4cfb-aca1-2cc988514949' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
	else
	  search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/LocalCrypt-ROOT ro  rootflags=data=writeback  cgroup_enable=memory swapaccount=1 init=/lib/systemd/systemd  quiet 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-d8469364-aa4b-4cfb-aca1-2cc988514949' {
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-d8469364-aa4b-4cfb-aca1-2cc988514949' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
		else
		  search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/LocalCrypt-ROOT ro  rootflags=data=writeback  cgroup_enable=memory swapaccount=1 init=/lib/systemd/systemd  quiet 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-d8469364-aa4b-4cfb-aca1-2cc988514949' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
		else
		  search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/LocalCrypt-ROOT ro single  rootflags=data=writeback  cgroup_enable=memory swapaccount=1 init=/lib/systemd/systemd 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-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/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-5C4B-9790' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  5C4B-9790
	else
	  search --no-floppy --fs-uuid --set=root 5C4B-9790
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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 ###

### BEGIN /etc/grub.d/42_grml ###
menuentry "Grml Rescue System (grml64-full_2014.03.iso)" {
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
        else
          search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
        fi
        iso_path="/grml/grml64-full_2014.03.iso"
        export iso_path
        kernelopts="   "
        export kernelopts
        loopback loop "/grml/grml64-full_2014.03.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
menuentry "Grml Rescue System (grml64-small_2014.03.iso)" {
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  33176b2c-e136-4c68-8a42-b11dfa8e052a
        else
          search --no-floppy --fs-uuid --set=root 33176b2c-e136-4c68-8a42-b11dfa8e052a
        fi
        iso_path="/grml/grml64-small_2014.03.iso"
        export iso_path
        kernelopts="   "
        export kernelopts
        loopback loop "/grml/grml64-small_2014.03.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
### END /etc/grub.d/42_grml ###
*********************** END /boot/grub/grub.cfg

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

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ata-ST1000LM014-1EJ164_W38110C1-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-name-LocalCrypt-ROOT -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-name-LocalCrypt-SWAP -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-name-sda7_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-uuid-CRYPT-LUKS1-ae658322236d489a8a9c371a369873ec-sda7_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-uuid-LVM-I5RGey9iK9SNWGu1I2zvqKw03J5Tc6E2EFCuC47tXbPTLHPSOT3gZgMxQtk13Ca2 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 12 15:44 dm-uuid-LVM-I5RGey9iK9SNWGu1I2zvqKw03J5Tc6E2WL5D751esJUkGCYFYCPrwWAcGJR23Ui9 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 lvm-pv-uuid-EPHp5W-cV3r-6FuB-d4xD-JZ5x-pGiU-3mMpk2 -> ../../dm-0
lrwxrwxrwx 1 root root  9 Dec 12 15:44 wwn-0x5000c5007287a128 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Dec 12 15:44 wwn-0x5000c5007287a128-part7 -> ../../sda7
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 12 15:44 24A009A6A0097F92 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 33176b2c-e136-4c68-8a42-b11dfa8e052a -> ../../sda6
lrwxrwxrwx 1 root root 10 Dec 12 15:44 54FEE0A6FEE0819A -> ../../sda4
lrwxrwxrwx 1 root root 10 Dec 12 15:44 5C4B-9790 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 12 15:44 D268077E68076099 -> ../../sda5
lrwxrwxrwx 1 root root 10 Dec 12 15:44 ae658322-236d-489a-8a9c-371a369873ec -> ../../sda7
lrwxrwxrwx 1 root root 10 Dec 12 15:44 c0d8fdcd-9027-4035-bbe2-095f87e15979 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 12 15:44 d8469364-aa4b-4cfb-aca1-2cc988514949 -> ../../dm-2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

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

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline: rootflags=data=writeback cgroup_enable=memory swapaccount=1 init=/lib/systemd/systemd
* grub2/force_efi_extra_removable: true
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline_default: quiet



More information about the Pkg-grub-devel mailing list