Bug#547710: grub-pc: Sets wrong default when entries are present before the kernel list
Matthijs Kooijman
matthijs at stdin.nl
Mon Sep 21 18:29:34 UTC 2009
Package: grub-pc
Version: 1.97~beta3-1
Severity: normal
Hi,
when upgrading from grub-legacy to grub-pc, my default entry changed
wrongly. From reading the post-install script and
/usr/lib/grub-legacy/update-grub I understand that the idea is to, when
chainloading is selected, set grub2 as the default option. It does this
by forcing the default to 0 in update-grub.
However, the chainloaded GRUB2 is not generally the first entry. It will
be the first entry inside the automagically generated kernels list, but
(as in my case) there might be entries above that (resulting in my grub
booting windows by default).
I guess the hard setting of default to 0 should be changed to something
that counts the "title.*" lines before the begin of the kernel list?
Gr.
Matthijs
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/Xanthe-root / ext3 rw,relatime,errors=remount-ro,commit=360,data=writeback 0 0
/dev/hda2 /boot ext3 rw,relatime,errors=continue,commit=360,data=writeback 0 0
/dev/mapper/Xanthe-home /home ext3 rw,relatime,errors=continue,commit=360,data=writeback 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/hda
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-rc8 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii grub-common 1.97~beta3-1 GRand Unified Bootloader, version
ii libc6 2.9-26 GNU C Library: Shared libraries
ii ucf 3.0022 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.5 common files for the Debian Deskto
ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM filesystem
-- debconf information excluded
More information about the Pkg-grub-devel
mailing list