Bug#297000: marked as done (update-grub loops when it sees an unexpected/nonexistent kernel version)

Debian Bug Tracking System owner@bugs.debian.org
Sat, 19 Mar 2005 15:03:57 -0800


Your message dated Sun, 20 Mar 2005 09:57:41 +1100
with message-id <20050319225740.GG6527@staff.pnc.com.au>
and subject line fixed in previous upload
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 Feb 2005 11:35:42 +0000
>From smurf@smurf.noris.de Sat Feb 26 03:35:41 2005
Return-path: <smurf@smurf.noris.de>
Received: from run.smurf.noris.de (server.smurf.noris.de) [192.109.102.41] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D50EX-0002Vr-00; Sat, 26 Feb 2005 03:35:41 -0800
Received: from kiste.smurf.noris.de ([192.109.102.35] ident=smurf)
	by server.smurf.noris.de with smtp (Exim 4.34)
	id 1D50EB-0002Tn-2F
	for submit@bugs.debian.org; Sat, 26 Feb 2005 12:35:32 +0100
Received: by kiste.smurf.noris.de (sSMTP sendmail emulation); Sat, 26 Feb 2005 12:35:18 +0100
Resent-From: smurf@smurf.noris.de
Resent-Date: Sat, 26 Feb 2005 12:35:18 +0100
Resent-Message-ID: <20050226113518.GA4667@kiste>
Resent-To: submit@bugs.debian.org
Received: from kiste.smurf.noris.de ([192.109.102.35] ident=smurf)
	by server.smurf.noris.de with smtp (Exim 4.34)
	id 1D4xvu-0005dv-RK; Sat, 26 Feb 2005 10:11:18 +0100
Received: by kiste.smurf.noris.de (sSMTP sendmail emulation); Sat, 26 Feb 2005 10:08:14 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Matthias Urlichs <smurf@smurf.noris.de>
To: Ubuntu Bug Tracking System <ubuntu-users@lists.ubuntu.com>
Subject: update-grub loops when it sees an unexpected/nonexistent kernel version
Bcc: Matthias Urlichs <smurf@smurf.noris.de>
X-Mailer: reportbug 3.5ubuntu4
Date: Sat, 26 Feb 2005 10:08:14 +0100
Message-ID: <E1D4xvu-0005dv-RK@server.smurf.noris.de>
X-Smurf-Spam-Score: 1.7 (+)
X-Smurf-Whitelist: +relay_from_hosts
X-Smurf-Spam-Score: 0.0 (/)
X-Smurf-Whitelist: +relay_from_hosts
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(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_2005_01_02
X-Spam-Level: 

Package: grub
Severity: important
Tags: patch

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

Repeat by "echo test >/boot/vmlinuz" and running update-grub.

Seen on Ubuntu, but it seems to apply to the Debian version too.

- --- debian/changelog.orig	2005-02-26 10:01:40 +0100
+++ debian/changelog	2005-02-26 09:59:22 +0100
@@ -1,3 +1,9 @@
+grub (0.95+cvs20040624-14ubuntu2) hoary; urgency=low
+
+  * A kernel named /boot/vmlinuz caused update-grub to loop infinitely.
+
+ -- Matthias Urlichs <smurf@debian.org>  Sat, 26 Feb 2005 09:58:20 +0100
+
 grub (0.95+cvs20040624-14ubuntu1) hoary; urgency=low
 
   * Resynchronise with Debian.
- --- debian/update-grub.orig	2005-02-26 10:01:19 +0100
+++ debian/update-grub	2005-02-26 10:01:24 +0100
@@ -542,7 +542,13 @@
 			if [ -n "$currentOpt" ] ; then
 				break
 			fi
+
+			oldversion="$version"
 			version=$(echo $version | sed 's/_\?[0-9]*$//')
+			if [ "$version" = "$oldversion" ] ; then
+				# Break infinite loop, if the version isn't what we expect
+				break
+			fi
 		done
 	fi
 

- -- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (730, 'testing'), (620, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc3-1.19
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

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

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

iD8DBQFCIDx+8+hUANcKr/kRApInAJwI0tGNqZTKlPD6juhEdGua+pgqSwCdHJcX
etBgin5zRpX7iDfPmqFSPA4=
=7RNh
-----END PGP SIGNATURE-----

---------------------------------------
Received: (at 297000-done) by bugs.debian.org; 19 Mar 2005 22:58:14 +0000
>From jason@debian.org Sat Mar 19 14:58:14 2005
Return-path: <jason@debian.org>
Received: from barra.pnc.com.au [203.13.174.15] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DCmtZ-0004CM-00; Sat, 19 Mar 2005 14:58:13 -0800
Received: from smtp.pnc.com.au (belinda.pnc.com.au [203.13.174.10])
	by barra.pnc.com.au (Postfix) with SMTP id 0205F350
	for <297000-done@bugs.debian.org>; Sun, 20 Mar 2005 09:25:54 +0000 (UTC)
Received: (qmail 2677 invoked by uid 0); 19 Mar 2005 22:58:51 -0000
Received: from unknown (HELO bart.thomas) (203.91.246.20)
  by smtp.pnc.com.au with SMTP; 19 Mar 2005 22:58:51 -0000
Received: by bart.thomas (sSMTP sendmail emulation); Sun, 20 Mar 2005 09:57:41 +1100
Date: Sun, 20 Mar 2005 09:57:41 +1100
From: Jason Thomas <jason@debian.org>
To: 297000-done@bugs.debian.org
Subject: fixed in previous upload
Message-ID: <20050319225740.GG6527@staff.pnc.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-No-CC: Im probably on the list
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 297000-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This bugs is fixed in my last upload.