Your message dated Thu, 01 Feb 2007 00:02:15 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#404536: fixed in grub 0.97-22
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)

--- Begin Message ---
Package: grub
Version: 0.97-20
Severity: normal
Tags: patch

xen's pygrub allows booting a xen domU using a kernel loaded from inside
that domU's disk. It looks at the domU's /boot/grub/menu.lst file, and
displays a grub-like list of kernels. For this to work though, the
menu.lst should include xen kernels, and exclude non-xen kernels, which
is the opposite of what update-grub puts in there now.

I've attached a patch that makes update-grub smart about this. If the
system is a dom0, or not a xen system, it behaves as before, excluding
the xen kernels from menu.lst. If the system is a domU, it includes only
xen kernels.

I've tested this patch on all three system types, and several kernel
versions, and it seems to work well.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages grub depends on:
ii  libc6                        2.3.6.ds1-9 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand

grub recommends no packages.

-- no debconf information

-- 
see shy jo
--- /usr/sbin/update-grub	2006-11-09 07:39:33.000000000 -0500
+++ ./update-grub	2006-12-25 20:55:24.000000000 -0500
@@ -887,13 +887,26 @@
     fi
 done
 
+in_domU=
+if [ -e /proc/xen/capabilities ] && ! grep -q "control_d" /proc/xen/capabilities; then
+	in_domU=1
+fi
+
 sortedKernels=""
-for kern in $(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep -v "xen" | grep "^vmlinuz-") ; do
-	# found a kernel
-        if `echo "$xenKernels" | grep -q "$kern "` ; then
+for kern in $(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-") ; do
+	if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -q "xen"`; then
+		is_xen=1
+	else
+		is_xen=
+	fi
+
+	if [ ! "$in_domU" ] && [ "$is_xen" ]; then
+	  # skip xen kernels
           continue
+        elif [ "$in_domU" ] && ! [ "$is_xen" ]; then
+	  # skip non-xen kernels
+	  continue
         fi
-        # not a Xen kernel
         kern="/boot/$kern"
 	newerKernels=""
 	for i in $sortedKernels ; do

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: grub
Source-Version: 0.97-22

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.97-22_all.deb
  to pool/main/g/grub/grub-disk_0.97-22_all.deb
grub-doc_0.97-22_all.deb
  to pool/main/g/grub/grub-doc_0.97-22_all.deb
grub_0.97-22.diff.gz
  to pool/main/g/grub/grub_0.97-22.diff.gz
grub_0.97-22.dsc
  to pool/main/g/grub/grub_0.97-22.dsc
grub_0.97-22_i386.deb
  to pool/main/g/grub/grub_0.97-22_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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otavio Salvador <[EMAIL PROTECTED]> (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 [EMAIL PROTECTED])


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

Format: 1.7
Date: Wed, 31 Jan 2007 21:49:14 -0200
Source: grub
Binary: grub-disk grub grub-doc
Architecture: source i386 all
Version: 0.97-22
Distribution: unstable
Urgency: high
Maintainer: Grub Maintainers <[EMAIL PROTECTED]>
Changed-By: Otavio Salvador <[EMAIL PROTECTED]>
Description: 
 grub       - GRand Unified Bootloader
 grub-disk  - GRUB bootable disk image
 grub-doc   - Documentation for GRand Unified Bootloader
Closes: 404536 409190
Changes: 
 grub (0.97-22) unstable; urgency=high
 .
   * Applied patch from Chip Salzenberg <[EMAIL PROTECTED]> to avoid to write
     to stdout. Fix kernel postrm calls. Closes: #409190.
   * Applied patch from Joey Hess <[EMAIL PROTECTED]> to put xen kernels
     when running inside of a domU. Closes: #404536.
Files: 
 5b6acb25e75ceee1caa3af0eb8f365da 896 admin optional grub_0.97-22.dsc
 41caa4cf8d6456dfded25ab2c074663d 73838 admin optional grub_0.97-22.diff.gz
 0bdc390867b8d94e49b064ee80de8352 374164 admin optional grub_0.97-22_i386.deb
 ff7fad7d46a3baf1e79d5a0c29b6fd13 243926 admin optional 
grub-disk_0.97-22_all.deb
 a5b71dc3108b1cb118efadbb075919df 272136 doc optional grub-doc_0.97-22_all.deb

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

iD8DBQFFwSt/LqiZQEml+FURAo/HAJ0WakmmOB4cDkMv5/CEFwpTLQKjowCfYN0j
mWFHnteSjBPALWBqU0EP4bA=
=eGmr
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to