Bug#911147: grub-efi-amd64: GRUB2 fails to boot from a XFS Partition

Dominik Strebel dominik.strebel at empa.ch
Tue Oct 16 12:36:24 BST 2018


Package: grub-efi-amd64
Version: 2.02+dfsg1-6
Severity: important

Dear Maintainer,

I installed a vanilla Debian Testing on XFS on my KVM server. I adjusted
the proposed whole disk layout to use XFS instead of ext4 during the
installation. I ended up with a eps, XFS and a swap setup, one that
worked well with Jessie and Stretch. After finishing the installation, I
rebooted and fell back to the Grub cmd prompt. 

After investigating the issue, I found out that no xfs.mod was loaded. I
then manually copied /boot/grub/x86_64-efi to /boot/efi/EFI/debian,
since /boot/grub is not accessible at this stage. This worked, my system
boots now. 

I compared this with an identical Stretch setup. In Stretch, everything
works fine without a /boot/efi/EFI/debian/x86_64-efi folder. 

Please notice that this was made in a KVM/UEFI Setup under Stretch.

Thank you very much.



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/vda2 / xfs rw,relatime,attr2,inode64,noquota 0 0
/dev/vda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,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 xfs
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
else
  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
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_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
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 ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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-91d900fe-f0f6-4700-ba80-d4027518b52e' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod xfs
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
	else
	  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
	fi
	echo	'Loading Linux 4.18.0-2-amd64 ...'
	linux	/boot/vmlinuz-4.18.0-2-amd64 root=UUID=91d900fe-f0f6-4700-ba80-d4027518b52e ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.18.0-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-91d900fe-f0f6-4700-ba80-d4027518b52e' {
	menuentry 'Debian GNU/Linux, with Linux 4.18.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-2-amd64-advanced-91d900fe-f0f6-4700-ba80-d4027518b52e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod xfs
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
		else
		  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
		fi
		echo	'Loading Linux 4.18.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.18.0-2-amd64 root=UUID=91d900fe-f0f6-4700-ba80-d4027518b52e ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.18.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.18.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-2-amd64-recovery-91d900fe-f0f6-4700-ba80-d4027518b52e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod xfs
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
		else
		  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
		fi
		echo	'Loading Linux 4.18.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.18.0-2-amd64 root=UUID=91d900fe-f0f6-4700-ba80-d4027518b52e ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.18.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.16.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.16.0-2-amd64-advanced-91d900fe-f0f6-4700-ba80-d4027518b52e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod xfs
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
		else
		  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
		fi
		echo	'Loading Linux 4.16.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.16.0-2-amd64 root=UUID=91d900fe-f0f6-4700-ba80-d4027518b52e ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.16.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.16.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.16.0-2-amd64-recovery-91d900fe-f0f6-4700-ba80-d4027518b52e' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod xfs
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  91d900fe-f0f6-4700-ba80-d4027518b52e
		else
		  search --no-floppy --fs-uuid --set=root 91d900fe-f0f6-4700-ba80-d4027518b52e
		fi
		echo	'Loading Linux 4.16.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.16.0-2-amd64 root=UUID=91d900fe-f0f6-4700-ba80-d4027518b52e ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.16.0-2-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 ###
### 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 LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Oct 16 13:14 ata-QEMU_DVD-ROM_QM00001 -> ../../sr0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root  9 Oct 16 13:14 2018-06-12-18-54-19-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Oct 16 13:14 7ACE-391F -> ../../vda1
lrwxrwxrwx 1 root root 10 Oct 16 13:14 8388027c-2fc3-4ba9-a4fd-b086a15f2c0e -> ../../vda3
lrwxrwxrwx 1 root root 10 Oct 16 13:14 91d900fe-f0f6-4700-ba80-d4027518b52e -> ../../vda2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_US:en (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-efi-amd64 depends on:
ii  debconf [debconf-2.0]  1.5.69
ii  grub-common            2.02+dfsg1-6
ii  grub-efi-amd64-bin     2.02+dfsg1-6
ii  grub2-common           2.02+dfsg1-6
ii  ucf                    3.0038

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_TIME = "de_CH.UTF-8",
	LC_MONETARY = "de_CH.UTF-8",
	LC_ADDRESS = "de_CH.UTF-8",
	LC_TELEPHONE = "de_CH.UTF-8",
	LC_NAME = "de_CH.UTF-8",
	LC_MEASUREMENT = "de_CH.UTF-8",
	LC_IDENTIFICATION = "de_CH.UTF-8",
	LC_NUMERIC = "de_CH.UTF-8",
	LC_PAPER = "de_CH.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
  grub2/device_map_regenerated:
  grub2/force_efi_extra_removable: false
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
  grub2/update_nvram: true
* grub2/linux_cmdline_default: quiet



More information about the Pkg-grub-devel mailing list