Bug#750958: 20_linux_xen: wrong Xen parameters generated for pc's using efi

fld fld at r00t3d.com
Sun Jun 8 23:52:23 UTC 2014


Package: grub-efi
Version: 2.02~beta2-10
Severity: normal
Tags: upstream

Dear Maintainer,

Consider this code in the 20_linux_xen script:
if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
        xen_rm_opts=
else
        xen_rm_opts="no-real-mode edd=off"
fi

The purpose is to set options: "no-real-mode edd=off" for non-pc machines,
yet when booting up with U(EFI), the $grub_platform equals "efi", and those
boot parameters get added. They are probably not something many PC users
would want, especially since "no-real-mode" seems to disable the VGA completely.

Without really knowing much about anything, this is how I fixed it:
if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
    xen_rm_opts=
else
    xen_rm_opts="no-real-mode edd=off"
fi

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/debian-lvroot / ext4 rw,noatime,errors=remount-ro,data=ordered 0 0
/dev/sda3 /boot ext3 rw,noatime,data=ordered 0 0
/dev/sda1 /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="${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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
else
  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
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=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
else
  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
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-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	savedefault
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
	else
	  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
	fi
	echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
	linux	/vmlinuz-3.15.0-rc8-next-20140603+ root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.15.0-rc8-next-20140603+
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	menuentry 'Debian GNU/Linux, with Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	savedefault
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
		else
		  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
		fi
		echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
		linux	/vmlinuz-3.15.0-rc8-next-20140603+ root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.15.0-rc8-next-20140603+
	}
	menuentry 'Debian GNU/Linux, with Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	savedefault
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
		else
		  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
		fi
		echo	'Loading Linux 3.15.0-rc7 ...'
		linux	/vmlinuz-3.15.0-rc7 root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.15.0-rc7
	}
}

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

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Xen hypervisor' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	savedefault
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
	else
	  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
	fi
	echo	'Loading Xen xen ...'
        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
	multiboot	/xen.gz placeholder iommu=1  ${xen_rm_opts}
	echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
	module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
	echo	'Loading initial ramdisk ...'
	module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
}
submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
	submenu 'Xen hypervisor, version xen' $menuentry_id_option 'xen-hypervisor-xen-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen xen and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen xen ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen xen and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen xen ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
	submenu 'Xen hypervisor, version 4' $menuentry_id_option 'xen-hypervisor-4-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen 4 and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen 4 and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
	submenu 'Xen hypervisor, version 4.5' $menuentry_id_option 'xen-hypervisor-4.5-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen 4.5 and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.5 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.5.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen 4.5 and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.5 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.5.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
	submenu 'Xen hypervisor, version 4.5-unstable' $menuentry_id_option 'xen-hypervisor-4.5-unstable-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen 4.5-unstable and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.5-unstable ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.5-unstable.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen 4.5-unstable and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.5-unstable ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.5-unstable.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
	submenu 'Xen hypervisor, version 4.4' $menuentry_id_option 'xen-hypervisor-4.4-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen 4.4 and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.4 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.4.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen 4.4 and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.4 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.4.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
	submenu 'Xen hypervisor, version 4.4-rc2' $menuentry_id_option 'xen-hypervisor-4.4-rc2-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
		menuentry 'Debian GNU/Linux, with Xen 4.4-rc2 and Linux 3.15.0-rc8-next-20140603+' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc8-next-20140603+-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.4-rc2 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.4-rc2.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc8-next-20140603+ ...'
			module	/vmlinuz-3.15.0-rc8-next-20140603+ placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc8-next-20140603+
		}
		menuentry 'Debian GNU/Linux, with Xen 4.4-rc2 and Linux 3.15.0-rc7' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.15.0-rc7-advanced-e6dbee93-5688-4d7d-9cb3-9aec74150cc2' {
			savedefault
			insmod part_gpt
			insmod ext2
			set root='hd0,gpt3'
			if [ x$feature_platform_search_hint = xy ]; then
			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  d6906260-070a-41f6-bb66-89b4ce4dde0a
			else
			  search --no-floppy --fs-uuid --set=root d6906260-070a-41f6-bb66-89b4ce4dde0a
			fi
			echo	'Loading Xen 4.4-rc2 ...'
		        if [ "$grub_platform" = "pc" -o "$grub_platform" = "efi" -o "$grub_platform" = "" ]; then
		            xen_rm_opts=
		        else
		            xen_rm_opts="no-real-mode edd=off"
		        fi
			multiboot	/xen-4.4-rc2.gz placeholder iommu=1  ${xen_rm_opts}
			echo	'Loading Linux 3.15.0-rc7 ...'
			module	/vmlinuz-3.15.0-rc7 placeholder root=/dev/mapper/debian-lvroot ro  consoleblank=0 intel_iommu=on,igfx_off
			echo	'Loading initial ramdisk ...'
			module	--nounzip   /initrd.img-3.15.0-rc7
		}
	}
}

### 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 ###
### 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
Personalities : 
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jun  8 20:04 ata-SAMSUNG_HD103UJ_S13PJ1KQ214533 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jun  8 17:35 ata-Samsung_SSD_840_PRO_Series_S1ATNSADB49950K -> ../../sda
lrwxrwxrwx 1 root root 10 Jun  8 17:35 ata-Samsung_SSD_840_PRO_Series_S1ATNSADB49950K-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 ata-Samsung_SSD_840_PRO_Series_S1ATNSADB49950K-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 17:35 ata-Samsung_SSD_840_PRO_Series_S1ATNSADB49950K-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 17:35 ata-Samsung_SSD_840_PRO_Series_S1ATNSADB49950K-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-name-cryptroot -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-name-debian-lvroot -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-name-debian-lvswap -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-name-debian-lvwin -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun  8 18:50 dm-name-samsuck-orig -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun  9 02:37 dm-name-samsuck-tmp -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-uuid-CRYPT-LUKS1-aceb84bbd63740ddbab654fec4dd7084-cryptroot -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-uuid-LVM-JVlRIyXTbCo2RVUK1qXKQ1NTXccxxPUOAzCEW0j5fWOhtJUSTLLhltbRTyIij4Su -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-uuid-LVM-JVlRIyXTbCo2RVUK1qXKQ1NTXccxxPUObNCcDy5Kf0VKZd3LkfXJgmPk3an2qnVP -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun  8 17:35 dm-uuid-LVM-JVlRIyXTbCo2RVUK1qXKQ1NTXccxxPUOp4dEBPogSniTEclX3IEKAi6KrwnPSJQf -> ../../dm-2
lrwxrwxrwx 1 root root 11 Jun  8 17:35 md-uuid-da36bceb:10bd09e4:79ae57cf:3038ae10 -> ../../md127
lrwxrwxrwx 1 root root  9 Jun  8 20:04 wwn-0x50000f000b125433 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jun  8 17:35 wwn-0x50025385a015b454 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun  8 17:35 wwn-0x50025385a015b454-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 wwn-0x50025385a015b454-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 17:35 wwn-0x50025385a015b454-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 17:35 wwn-0x50025385a015b454-part4 -> ../../sda4
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun  8 17:35 14474cd2-57e0-4b99-a357-4ef8d373c42c -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 F53D-57D3 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun  8 17:35 aceb84bb-d637-40dd-bab6-54fec4dd7084 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun  8 17:35 d6906260-070a-41f6-bb66-89b4ce4dde0a -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 17:35 e6dbee93-5688-4d7d-9cb3-9aec74150cc2 -> ../../dm-2
*********************** END /dev/disk/by-uuid

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

Kernel: Linux 3.15.0-rc7 (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

Versions of packages grub-efi depends on:
ii  grub-common     2.02~beta2-10
ii  grub-efi-amd64  2.02~beta2-10

grub-efi recommends no packages.

grub-efi suggests no packages.

-- no debconf information



More information about the Pkg-grub-devel mailing list