Bug#268141: marked as done (update-grub wrongly reads default kernel version)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 18 Nov 2004 15:48:49 -0800


Your message dated Thu, 18 Nov 2004 18:32:11 -0500
with message-id <E1CUvl5-0003oo-00@newraff.debian.org>
and subject line Bug#268141: fixed in grub 0.95+cvs20040624-11
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 26 Aug 2004 09:09:05 +0000
>From michal@cihar.com Thu Aug 26 02:09:05 2004
Return-path: <michal@cihar.com>
Received: from styx.suse.cz (cihar.com) [82.119.242.94] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C0GFl-0006tB-00; Thu, 26 Aug 2004 02:09:05 -0700
Received: from michal by cihar.com with local (Exim 4.34)
	id 1Bzkf2-0008GJ-HP; Wed, 25 Aug 2004 01:25:04 +0200
Content-Type: multipart/mixed; boundary="===============1824181221=="
MIME-Version: 1.0
From: =?utf-8?b?TWljaGFsIMSMaWhhxZk=?= <michal@cihar.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: update-grub wrongly reads default kernel version
X-Mailer: reportbug 2.64
Date: Wed, 25 Aug 2004 01:25:04 +0200
Message-Id: <E1Bzkf2-0008GJ-HP@cihar.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1824181221==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: grub
Version: 0.95+cvs20040624-8
Severity: normal
Tags: patch

update-grub script wrongly reads default kernel version, attached patch
fixes it.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc1-raptor
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

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

-- no debconf information

--===============1824181221==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="update-grub.patch"

--- /sbin/update-grub	2004-08-14 20:28:54.000000000 +0200
+++ /tmp/update-grub	2004-08-25 01:21:40.000000000 +0200
@@ -704,9 +704,9 @@
 
 	echo "Found kernel: $kernel"
 
-	if [ "$kernelVersion" = "vmlinuz" ]; then
-		if [ -L "/boot/$kernelVersion" ]; then
-			kernelVersion=`readlink -f "/boot/$kernelVersion"`
+	if [ "$kernelVersion" = "" ]; then
+		if [ -L "/boot/$kernelName" ]; then
+			kernelVersion=`readlink -f "/boot/$kernelName"`
 			kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
 			kernelVersion="$kernelVersion Default"
 		else

--===============1824181221==--

---------------------------------------
Received: (at 268141-close) by bugs.debian.org; 18 Nov 2004 23:38:22 +0000
>From katie@ftp-master.debian.org Thu Nov 18 15:38:22 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CUvr4-0007gl-00; Thu, 18 Nov 2004 15:38:22 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CUvl5-0003oo-00; Thu, 18 Nov 2004 18:32:11 -0500
From: Jason Thomas <jason@debian.org>
To: 268141-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#268141: fixed in grub 0.95+cvs20040624-11
Message-Id: <E1CUvl5-0003oo-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Thu, 18 Nov 2004 18:32:11 -0500
Delivered-To: 268141-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 9

Source: grub
Source-Version: 0.95+cvs20040624-11

We believe that the bug you reported is fixed in the latest version of
grub, which is due to be installed in the Debian FTP archive:

grub-disk_0.95+cvs20040624-11_all.deb
  to pool/main/g/grub/grub-disk_0.95+cvs20040624-11_all.deb
grub-doc_0.95+cvs20040624-11_all.deb
  to pool/main/g/grub/grub-doc_0.95+cvs20040624-11_all.deb
grub_0.95+cvs20040624-11.diff.gz
  to pool/main/g/grub/grub_0.95+cvs20040624-11.diff.gz
grub_0.95+cvs20040624-11.dsc
  to pool/main/g/grub/grub_0.95+cvs20040624-11.dsc
grub_0.95+cvs20040624-11_i386.deb
  to pool/main/g/grub/grub_0.95+cvs20040624-11_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 268141@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jason Thomas <jason@debian.org> (supplier of updated grub package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 19 Nov 2004 09:40:53 +1100
Source: grub
Binary: grub-disk grub grub-doc
Architecture: source i386 all
Version: 0.95+cvs20040624-11
Distribution: unstable
Urgency: low
Maintainer: Grub Maintainers <pkg-grub-devel@lists.alioth.debian.org>
Changed-By: Jason Thomas <jason@debian.org>
Description: 
 grub       - GRand Unified Bootloader
 grub-disk  - GRUB bootable disk image
 grub-doc   - Documentation for GRand Unified Bootloader
Closes: 211096 215116 229649 230136 240599 250545 265915 266049 268141 281652
Changes: 
 grub (0.95+cvs20040624-11) unstable; urgency=low
 .
   * Added support for LABEL/UUID to update-grub.
     (Closes: #211096, #215116)
   * Added support for 4 digit kernel version to update-grub.
     (Closes: #266049)
   * Added support for memtest86 to update-grub.
     (Closes: #229649)
   * Fixed update-grub to detect default and previous kernels correctly.
     (Closes: #230136, #240599, #250545, #268141)
   * Update-grub now ignores .dpkg-*
     (Closes: #265915)
   * Added support for fat_stage1_5 to linux build.
     (Closes: #281652)
   * Removed e2fsprogs from Build-Depends-Indep as it is an Essential package.
Files: 
 6312c61d3fa54da18e50cf672b20621f 888 admin optional grub_0.95+cvs20040624-11.dsc
 a1ecf0c6f9f4de39a178a36578a82c86 57457 admin optional grub_0.95+cvs20040624-11.diff.gz
 2a88c3e037c0dda156245ab5c15591bb 358066 admin optional grub_0.95+cvs20040624-11_i386.deb
 0907858e7a2474fb1f7f5be863d633b5 227732 admin optional grub-disk_0.95+cvs20040624-11_all.deb
 e42661f13128fbdf82d1684fb17326ca 259350 doc optional grub-doc_0.95+cvs20040624-11_all.deb

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

iD8DBQFBnSzb7cYwRJJSiL4RAjNaAKDzr6sJEJkLdUymxCkP4MK1MGanmQCeJpE4
T+Da3GDgn1LDor5899KolK8=
=DNYB
-----END PGP SIGNATURE-----