Bug#476531: grub-pc: unable to use LABEL=root for root device

Michael Spang mspang at uwaterloo.ca
Thu Apr 17 06:53:26 UTC 2008


Package: grub-pc
Version: 1.96+20080228-1
Severity: wishlist

Before grub2, you could set the root device to "LABEL=root" in menu.lst.
This might be necessary if, say, you switch to/from kernels that use
libata for PATA controllers. A kernel with libata would name the first
PATA disk "sda", whereas previous kernels would name it "hda".

It would be great if there was an option to make 10_linux use filesystem
labels instead of the device name.

Thanks,
Michael Spang

-- Package-specific info:

*********************** BEGIN 
/dev/sda2 / ext3 rw,noatime,errors=continue,data=ordered 0 0
/dev/sda2 /dev/.static/dev ext3 rw,errors=continue,data=ordered 0 0
/dev/sda3 /home ext3 rw,noatime,errors=continue,data=writeback 0 0
/dev/sda5 /media/sda5 ext3 rw,noatime,errors=continue,data=ordered 0 0
*********************** END 

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,2)
if font (hd0,2)/usr/share/grub/unicode.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.25-rc3-freyr" {
	linux	(hd0,2)/boot/vmlinuz-2.6.25-rc3-freyr root=/dev/sda2 ro 
	initrd	(hd0,2)/boot/initrd.img-2.6.25-rc3-freyr
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc3-freyr (single-user mode)" {
	linux	(hd0,2)/boot/vmlinuz-2.6.25-rc3-freyr root=/dev/sda2 ro single 
	initrd	(hd0,2)/boot/initrd.img-2.6.25-rc3-freyr
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,2)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda2 ro 
	initrd	(hd0,2)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,2)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda2 ro single 
	initrd	(hd0,2)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-686" {
	linux	(hd0,2)/boot/vmlinuz-2.6.18-6-686 root=/dev/sda2 ro 
	initrd	(hd0,2)/boot/initrd.img-2.6.18-6-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-686 (single-user mode)" {
	linux	(hd0,2)/boot/vmlinuz-2.6.18-6-686 root=/dev/sda2 ro single 
	initrd	(hd0,2)/boot/initrd.img-2.6.18-6-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	(hd0,2)/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (20, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-rc3-freyr (SMP w/2 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-pc depends on:
ii  debconf [debconf-2.0]    1.5.19          Debian configuration management sy
ii  grub-common              1.96+20080228-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-9           GNU C Library: Shared libraries
ii  liblzo1                  1.08-3          data compression library (old vers
ii  libncurses5              5.6+20080203-1  Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf-show failed





More information about the Pkg-grub-devel mailing list