Bug#675530: grub2-common: Missing '=root' in Windows 8 entry

Waqqas Dadabhoy waqqas at waq.dyndns.tv
Fri Jun 1 22:57:24 UTC 2012


Package: grub2-common
Version: 1.99-22
Severity: minor

I installed grub on a computer already containing Windows 8 Consumer
Preview. When I select the windows entry in the grub list, it displays
"Error: no argument specified; press any key to continue", and pressing
any key boots grub fine.

Searching the error message indicates that this is due to "--set" being
used instead of "--set=root" in the entry. Looking at grub.cfg, I can
see "--set=root" in the linux entries, but not in the Windows entry, and
editing grub.cfg manually to include "=root" in the Windows entry fixes
the problem.
 
The Windows 8 entry is displayed as "Windows Vista (loader)" in the list.
(To prevent confusion for those reading the attached grub.cfg)

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

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 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 grub2-common depends on:
ii  dpkg          1.16.3
ii  grub-common   1.99-22
ii  install-info  4.13a.dfsg.1-10

grub2-common recommends no packages.

grub2-common suggests no packages.

-- no debconf information
-------------- next part --------------
#
# 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
  load_env
fi
set default="0"
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 {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos6)'
  search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
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 ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=1366x768
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
	echo	'Loading Linux 3.2.0-2-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-2-amd64 root=UUID=b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=1366x768
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
	echo	'Loading Linux 3.2.0-2-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-2-amd64 root=UUID=b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=1366x768
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=1366x768
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=b8c27f1e-4b1e-4c96-a0f4-8090a1fe6b62 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-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_otheros ###

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
menuentry "Windows Vista (loader)" {
	set root=(hd0,msdos1)
	search --no-floppy --fs-uuid --set 32c81a0ac819cccb
	chainloader +1
}
### END /etc/grub.d/30_otheros ###

### 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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


More information about the Pkg-grub-devel mailing list