Bug#257616: generates extra menu.lst item without a kernel version

Joey Hess Joey Hess <joeyh@debian.org>, 257616@bugs.debian.org
Sun, 4 Jul 2004 13:49:07 -0400


--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: grub
Version: 0.95+cvs20040624-3
Severity: normal

update-grub generates a menu.lst file that has an extra set of entries
for a kernel without a version. So it looks like this:

title		Debian GNU/Linux, kernel
root		(hd0,0)
kernel		/boot/vmlinuz root=3D/dev/hda1 ro
initrd		/boot/initrd.img
savedefault
boot

<stanza for same kernel, recovery mode>

title		Debian GNU/Linux, kernel 2.4.26-1-386
root		(hd0,0)
kernel		/boot/vmlinuz-2.4.26-1-386 root=3D/dev/hda1 ro
initrd		/boot/initrd-2.4.26-1-386.img
savedefault
boot

<stanza for same kernel, recovery mode>

The system was just installed from testing with the debian installer
(sid_d-i daily build 3 July), and I first saw the problem then, with the
version of grub in testing. I then upgraded to the grub in unstable,
deleted menu.lst and ran update-grub, but the new menu.lst still has the
problem.

Of course /boot/vmlinuz is a symlink to vmlinuz-2.4.26-1-386. The only
kernel I have installed is from the package kernel-image-2.4.26-1-386
version 2.4.26-2.

It looks like update-grub needs to get smarter about symlinks, and not
add entries for symlinks that are to other files it will add entries to
in any case. Or at least not put "kernel " in the title if it cannot
determine a kernel version string.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=3Den_US, LC_CTYPE=3Den_US

Versions of packages grub depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared librarie=
s an
ii  libncurses5                 5.4-4        Shared libraries for terminal =
hand

-- no debconf information

--=20
see shy jo

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA6EMSd8HHehbQuO8RAiOFAKDY8Yw1XUsUKhh18EiL6/WdwSHlQgCfSo+O
0Kkc1076UdMwTpha8P4Fgu4=
=bpJH
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--