Bug#240599: marked as done (symlinked kernels in update-grub)

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


Your message dated Thu, 18 Nov 2004 18:32:11 -0500
with message-id <E1CUvl5-0003oe-00@newraff.debian.org>
and subject line Bug#230136: 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; 28 Mar 2004 07:10:52 +0000
>From ilatypov@infradead.org Sat Mar 27 23:10:52 2004
Return-path: <ilatypov@infradead.org>
Received: from mailbox1.avalonworks.net [216.58.97.66] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B7URY-0005cK-00; Sat, 27 Mar 2004 23:10:52 -0800
Received: from localhost (i216-58-9-72.avalonworks.net [216.58.9.72])
	by mailbox1.avalonworks.net (8.12.11/8.12.11) with ESMTP id i2S7ApQD073733
	for <submit@bugs.debian.org>; Sun, 28 Mar 2004 02:10:51 -0500 (EST)
	(envelope-from ilatypov@infradead.org)
Received: from ilgiz by localhost with local (Exim 4.30)
	id 1B7U8t-0006DS-Ij
	for submit@bugs.debian.org; Sun, 28 Mar 2004 01:51:35 -0500
Date: Sun, 28 Mar 2004 01:51:34 -0500
From: Ilguiz Latypov <ilatypov@infradead.org>
To: submit@bugs.debian.org
Subject: symlinked kernels in update-grub
Message-ID: <20040328065134.GA23297@ei.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Ilguiz Latypov <ilatypov@infradead.org>
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=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


Package: grub
Version: 0.93+cvs20031021-8

I recently enabled the link_in_boot option in /etc/kernel-img.conf to
generate vmlinuz and vmlinuz.old symbolic links inside the /boot
partition.  However, the update-grub script produced entries such as

  title           Debian GNU/Linux, kernel             (a)
  root            (hd0,2)
  kernel          /vmlinuz root=/dev/hda4 ro ramdisk_size=16384 
  initrd          /initrd.img
  savedefault
  boot

and

  title           Debian GNU/Linux, kernel .old        (b)
  root            (hd0,2)
  kernel          /vmlinuz.old .old                    (c)
  initrd          /initrd.img.old
  savedefault
  boot

The lines (a), (b) and (c) did not look as expected.  Below is the
suggested fix.  Regards,

-- 
Ilguiz Latypov

tel.  +1 (519) 569-8746
66 Wildlark Crescent
Kitchener, Ontario N2N 3E9

==================================================================
--- /sbin/update-grub.orig	2004-01-06 16:08:06.000000000 -0500
+++ /sbin/update-grub	2004-03-28 01:28:31.000000000 -0500
@@ -685,25 +685,26 @@
 		kernel_dir=
 	fi
 
-	kernel=$kernel_dir/$kernelName
+	kernel="$kernel_dir/$kernelName"
+	kernelAbs="/boot/$kernelName"
 	if [ -n "$initrdName" ] ; then
 		initrd=$kernel_dir/$initrdName
 	fi
 
 	echo "Found kernel: $kernel"
 
-	if [ "$kernelVersion" = "vmlinuz" ]; then
-		if [ -L "/boot/$kernelVersion" ]; then
-			kernelVersion=`readlink -f "/boot/$kernelVersion"`
+	if [ "$kernelName" = "vmlinuz" ]; then
+		if [ -L "$kernelAbs" ]; then
+			kernelVersion=`readlink -f "$kernelAbs"`
 			kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
 			kernelVersion="$kernelVersion Default"
 		else
 			kernelVersion="Default"
 		fi
 	fi
-	if [ "$kernelVersion" = "vmlinuz.old" ]; then
-		if [ -L "/boot/$kernelVersion" ]; then
-			kernelVersion=`readlink -f "/boot/$kernelVersion"`
+	if [ "$kernelName" = "vmlinuz.old" ]; then
+		if [ -L "$kernelAbs" ]; then
+			kernelVersion=`readlink -f "$kernelAbs"`
 			kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
 			kernelVersion="$kernelVersion Previous"
 		else
==================================================================


---------------------------------------
Received: (at 230136-close) by bugs.debian.org; 18 Nov 2004 23:38:25 +0000
>From katie@ftp-master.debian.org Thu Nov 18 15:38:25 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 1CUvr6-0007ii-00; Thu, 18 Nov 2004 15:38:25 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CUvl5-0003oe-00; Thu, 18 Nov 2004 18:32:11 -0500
From: Jason Thomas <jason@debian.org>
To: 230136-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#230136: fixed in grub 0.95+cvs20040624-11
Message-Id: <E1CUvl5-0003oe-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Thu, 18 Nov 2004 18:32:11 -0500
Delivered-To: 230136-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: 4

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 230136@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-----