Bug#802717: nexpected os-prober when setting up grub in a disk image

Joey Hess id at joeyh.name
Thu Oct 22 20:10:06 UTC 2015


Package: grub-pc
Version: 2.02~beta2-28
Severity: normal

I'm creating a disk image, which I want to be bootable using grub.
Unexpectedly, update-grub runs os-prober which probes the host system
and adds unwanted entries for it.

In the transcript below, /mnt is a loop mounted filesystem from my disk image.
I used kpartx to set up the loop device for the partition inside the disk image.

I bind mount /dev from the host system because this seems to be
necessary to let update-grub figure out that it's being run in a disk
image (by giving it access to /dev/mapper etc).
(Also because vmdebootstrap does it..)

root at darkstar:/mnt>mount --bind /dev dev
root at darkstar:/mnt>chroot . 
root at darkstar:/# mount -t sysfs sys /sys
root at darkstar:/# mount -t proc proc /proc
root at darkstar:/# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.2.0-1-amd64
Found initrd image: /boot/initrd.img-4.2.0-1-amd64
Found Windows 8 (loader) on /dev/sda2
Found Debian GNU/Linux (stretch/sid) on /dev/sda3
done
root at darkstar:/mnt>grub-install /dev/loop2 
Installing for i386-pc platform.
Installation finished. No error reported.

The result is, grub boots fine using this disk image, but the menu has
unexpected entries, from os-prober, for the system where it was built.

I think the only reason that vmdebootstrap images don't experience this
problem is because it doesn't install os-prober by default. However, I'd
like to include os-prober on my image, if possible.

Could the os-prober hook perhaps notice when the root is a loopback
image, and avoid probing the host system?

Temporary workaround: chmod -x /etc/grub.d/30_os-prober 

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda3 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sdb1 /media/flash ext4 rw,sync,nosuid,nodev,noexec,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/loop2p1 /mnt ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-SAMSUNG_MZMPC128HBFU-000L1_S0Y4NEAD923930
(hd1)	/dev/disk/by-id/usb-Generic_Mass_storage_gsgsmt07211218000816-0:0
*********************** 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='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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
else
  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
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 ###
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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
else
  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub-1920x1080.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-1619e79b-7dc8-46a1-af37-824e461ea961' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
	else
	  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
	fi
	echo	'Loading Linux 4.2.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.2.0-1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.2.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-1619e79b-7dc8-46a1-af37-824e461ea961' {
	menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-advanced-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.2.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.2.0-1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.2.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-init-sysvinit-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.2.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.2.0-1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.2.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-recovery-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.2.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.2.0-1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.2.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-advanced-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.1.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.1.0-2-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.1.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-init-sysvinit-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.1.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.1.0-2-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.1.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-recovery-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 4.1.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.1.0-2-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.1.0-2-amd64
	}
	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-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.12-0.bpo.1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-0.bpo.1-amd64-advanced-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.12-0.bpo.1-amd64 ...'
		linux	/boot/vmlinuz-3.12-0.bpo.1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.12-0.bpo.1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.12-0.bpo.1-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-0.bpo.1-amd64-init-sysvinit-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.12-0.bpo.1-amd64 ...'
		linux	/boot/vmlinuz-3.12-0.bpo.1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.12-0.bpo.1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.12-0.bpo.1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-0.bpo.1-amd64-recovery-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.12-0.bpo.1-amd64 ...'
		linux	/boot/vmlinuz-3.12-0.bpo.1-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.12-0.bpo.1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-init-sysvinit-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-1619e79b-7dc8-46a1-af37-824e461ea961' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
		else
		  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=1619e79b-7dc8-46a1-af37-824e461ea961 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
	else
	  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
	else
	  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
	else
	  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	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 --hint='hd0,gpt3'  1619e79b-7dc8-46a1-af37-824e461ea961
	else
	  search --no-floppy --fs-uuid --set=root 1619e79b-7dc8-46a1-af37-824e461ea961
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-BE09-F11F' {
	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 --hint='hd0,gpt2'  BE09-F11F
	else
	  search --no-floppy --fs-uuid --set=root BE09-F11F
	fi
	drivemap -s (hd0) ${root}
	chainloader +1
}
### 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 Oct 13 17:27 ata-SAMSUNG_MZMPC128HBFU-000L1_S0Y4NEAD923930 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 13 17:27 ata-SAMSUNG_MZMPC128HBFU-000L1_S0Y4NEAD923930-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 13 17:27 ata-SAMSUNG_MZMPC128HBFU-000L1_S0Y4NEAD923930-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 13 17:27 ata-SAMSUNG_MZMPC128HBFU-000L1_S0Y4NEAD923930-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 22 15:36 dm-name-loop0p1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 15:36 dm-name-loop0p2 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 15:24 dm-name-loop1p1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 15:52 dm-name-loop2p1 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 15:36 dm-uuid-part1-loop0 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 15:24 dm-uuid-part1-loop1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 15:52 dm-uuid-part1-loop2 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 15:36 dm-uuid-part2-loop0 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 15:36 raid-loop0-part1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 15:36 raid-loop0-part2 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 15:36 raid-loop0p1-part1 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 15:36 raid-loop0p2-part2 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 15:24 raid-loop1-part1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 15:24 raid-loop1p1-part1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 15:52 raid-loop2-part1 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 15:52 raid-loop2p1-part1 -> ../../dm-3
lrwxrwxrwx 1 root root  9 Oct 22 09:48 usb-Generic-_SD_MMC_MS_PRO_20121112761000000-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 13 17:27 usb-Generic-_SD_MMC_MS_PRO_20121112761000000-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Oct 13 17:27 wwn-0x5002538043584d30 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 13 17:27 wwn-0x5002538043584d30-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 13 17:27 wwn-0x5002538043584d30-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 13 17:27 wwn-0x5002538043584d30-part3 -> ../../sda3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 13 17:27 1619e79b-7dc8-46a1-af37-824e461ea961 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 13 17:27 4855ddca-dba7-46eb-8e8d-84d1c1ed7908 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 22 15:24 9d8517d5-5dda-4584-9c55-1a496e66677e -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 13 17:27 BE09-F11F -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 13 17:27 E4CA079DCA076ADE -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 15:52 e9db4634-2572-4d63-858f-bf533d52256a -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 15:51 ef23f4a8-e7d6-4333-917d-892faefca9e9 -> ../../dm-0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.57
ii  grub-common            2.02~beta2-28
ii  grub-pc-bin            2.02~beta2-28
ii  grub2-common           2.02~beta2-28
ii  ucf                    3.0030

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information excluded

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20151022/b4d55a10/attachment-0001.sig>


More information about the Pkg-grub-devel mailing list