Bug#597323: grub-pc: kernel 2.6.36-rc4-git4 is listed after 2.6.36-rc4 in boot menu by default

2012-12-29 Thread Martin Naughton
Hello Arthur,
  Was  kernel 2.6.36-rc4 installed first on the machine?
Was a clean install? I do not think there is functionality in grub to
figure out which kernel should come first down to that level of release. It
might be able to find out which one is newer for example between 2.6.36 and
2.6.37. I think there would need to be hard coding in grub to make it tell
the difference between these 2 low level releases.

kernel 2.6.36-rc4 was the default kernel, but remained so after installing
kernel 2.6.36-rc4-git4.


What do you think colin?

-- 
Regards
Martin Naughton


Bug#597323: grub-pc: kernel 2.6.36-rc4-git4 is listed after 2.6.36-rc4 in boot menu by default

2010-09-18 Thread Arthur Marsh
Package: grub-pc
Version: 1.98+20100804-4
Severity: normal


I used kernel-package to build kernels 2.6.36-rc4 and later 2.6.36-rc4-git4

kernel 2.6.36-rc4 was the default kernel, but remained so after installing
kernel 2.6.36-rc4-git4.

Shouldn't the later kernel become the new default kernel to boot if 
GRUB_DEFAULT is set to 0?


-- Package-specific info:

*** BEGIN /proc/mounts
/dev/disk/by-uuid/96c96a61-8615-4715-86d0-09cb8c62638c / ext3 
rw,relatime,errors=remount-ro,barrier=0,data=ordered 0 0
/dev/hda1 /boot ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/hda6 /victoria vfat 
rw,relatime,uid=65534,gid=65534,fmask=,dmask=,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro
 0 0
/dev/sda1 /scsic vfat 
rw,relatime,uid=65534,gid=65534,fmask=,dmask=,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro
 0 0
/dev/sda5 /scsid vfat 
rw,relatime,uid=65534,gid=65534,fmask=,dmask=,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro
 0 0
/dev/sdb1 /mnt/usb8gig vfat 
rw,nosuid,nodev,noexec,relatime,uid=65534,gid=65534,fmask=,dmask=,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=win95,flush,errors=remount-ro
 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
(hd0)   /dev/disk/by-id/ata-WDC_WD3200AAJB-00WGA0_WD-WCARW6960348
(hd1)   /dev/disk/by-id/ata-SAMSUNG_SP4002H_0462J1FT349824
(hd2)   /dev/disk/by-id/scsi-SIBM_DCAS-34330W_F3T92021
(hd3)   /dev/disk/by-id/usb-Flash_Drive_AU_USB2.0_OGUN4WMN-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
  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,msdos7)'
search --no-floppy --fs-uuid --set 96c96a61-8615-4715-86d0-09cb8c62638c
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768x32
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set bfdeb6d6-0b77-4beb-a63d-bdc3e455b8ea
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
if sleep --verbose --interruptible 5 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set bfdeb6d6-0b77-4beb-a63d-bdc3e455b8ea
insmod png
if background_image /grub/moreblue-orbit-grub.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_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.36-rc4-git4' --class debian --class 
gnu-linux --class gnu --class os {
set gfxpayload=1024x768x32
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set bfdeb6d6-0b77-4beb-a63d-bdc3e455b8ea
echo'Loading Linux 2.6.36-rc4-git4 ...'
linux   /vmlinuz-2.6.36-rc4-git4 
root=UUID=96c96a61-8615-4715-86d0-09cb8c62638c ro  
echo'Loading initial ramdisk ...'
initrd  /initrd.img-2.6.36-rc4-git4
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-rc4-git4 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
set gfxpayload=1024x768x32
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set bfdeb6d6-0b77-4beb-a63d-bdc3e455b8ea
echo'Loading Linux 2.6.36-rc4-git4 ...'
linux   /vmlinuz-2.6.36-rc4-git4 
root=UUID=96c96a61-8615-4715-86d0-09cb8c62638c ro single 
echo'Loading initial ramdisk ...'
initrd  /initrd.img-2.6.36-rc4-git4
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-rc3' --class debian --class 
gnu-linux --class gnu --class os {
set gfxpayload=1024x768x32
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set bfdeb6d6-0b77-4beb-a63d-bdc3e455b8ea
echo'Loading Linux 2.6.36-rc3 ...'
linux   /vmlinuz-2.6.36-rc3 
root=UUID=96c96a61-8615-4715-86d0-09cb8c62638c ro  
echo'Loading initial ramdisk ...'
initrd  /initrd.img-2.6.36-rc3
}