Bug#464839: grub-pc: update-grub doesn't take care of GRUB_CMDLINE_LINUX

System Administrator buffalo.phil at free.fr
Sat Jul 19 12:26:44 UTC 2008


Package: grub-pc
Version: 1.96+20080704-2
Followup-For: Bug #464839


    hi,

$ man update-grub
...
DESCRIPTION
       Generate /boot/grub/grub.cfg
...

$ grep GRUB_CMDLINE_LINUX /etc/default/grub
# GRUB_CMDLINE_LINUX=
GRUB_CMDLINE_LINUX= video=vesafb:ywrap,mtrr vga=791
init=/sbin/bootchartd

$ ls -l /boot/grub/grub.cfg 
-r--r--r-- 1 root root 2027 jui 18 21:07 /boot/grub/grub.cfg

$ date ;sudo update-grub 
Sat Jul 19 14:20:31 CEST 2008
Updating /boot/grub/grub.cfg ...
Found Debian background: debian-blueish-wallpaper-640x480.png
Found linux image: /boot/vmlinuz-2.6.25-2-amd64
Found initrd image: /boot/initrd.img-2.6.25-2-amd64
Found linux image: /boot/vmlinuz-2.6.18-6-amd64
Found initrd image: /boot/initrd.img-2.6.18-6-amd64
Found memtest86+ image: /boot/memtest86+.bin
done

ls -l /boot/grub/grub.cfg 
-r--r--r-- 1 root root 2027 jui 19 14:20 /boot/grub/grub.cfg

$ grep GRUB_CMDLINE_LINUX /boot/grub/grub.cfg 
$ 

$ cat /boot/grub/grub.cfg 
...
### BEGIN /etc/grub.d/10_linux ###
set root=(hd0,2)
search --fs-uuid --set cc380fb5-8c57-4905-97aa-6cd3b7030ea1
menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64" {
        linux   /vmlinuz-2.6.25-2-amd64
root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro  
        initrd  /initrd.img-2.6.25-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64 (single-user mode)" {
        linux   /vmlinuz-2.6.25-2-amd64
root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro single 
        initrd  /initrd.img-2.6.25-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-amd64" {
        linux   /vmlinuz-2.6.18-6-amd64
root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro  
        initrd  /initrd.img-2.6.18-6-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-amd64 (single-user mode)" {
        linux   /vmlinuz-2.6.18-6-amd64
root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro single 
        initrd  /initrd.img-2.6.18-6-amd64
}
### END /etc/grub.d/10_linux ###


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sda2 /boot ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk1-lvdata_crypt /data ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk2-lvdonnees_crypt /donnees ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk2-lvhome /home ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk2-lvtmp /tmp ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk1-lvusr /usr ext3 rw,errors=continue,data=ordered 0 0
/dev/mapper/vgdisk2-lvvar /var ext3 rw,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** 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
insmod lvm
set root=(vgdisk1-lvusr)
search --fs-uuid --set 1426b00b-bc43-4047-8147-5b8a96682af7
if font /share/grub/ascii.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 root=(hd0,2)
search --fs-uuid --set cc380fb5-8c57-4905-97aa-6cd3b7030ea1
insmod png
if background_image /grub/debian-blueish-wallpaper-640x480.png ; then
  set color_normal=black/black
  set color_highlight=magenta/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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
set root=(hd0,2)
search --fs-uuid --set cc380fb5-8c57-4905-97aa-6cd3b7030ea1
menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64" {
	linux	/vmlinuz-2.6.25-2-amd64 root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro  
	initrd	/initrd.img-2.6.25-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.25-2-amd64 root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro single 
	initrd	/initrd.img-2.6.25-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-amd64" {
	linux	/vmlinuz-2.6.18-6-amd64 root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro  
	initrd	/initrd.img-2.6.18-6-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.18-6-amd64 root=UUID=f4b4a3e2-a13e-4039-a586-7e4bb38b5df0 ro single 
	initrd	/initrd.img-2.6.18-6-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
*********************** END /boot/grub/grub.cfg

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

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fr_FR.UTF-8 at euro (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.22          Debian configuration management sy
ii  grub-common              1.96+20080704-2 GRand Unified Bootloader, version 
ii  libc6                    2.7-12          GNU C Library: Shared libraries
ii  liblzo2-2                2.03-1          data compression library
ii  libncurses5              5.6+20080713-1  shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  4.0.7      common files for the Debian Deskto
pn  os-prober                     <none>     (no description available)

-- debconf information:
  grub-pc/linux_cmdline: fillme
  grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list