Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MULDB-0007AQ-Cg for mharc-grub-devel@gnu.org; Fri, 24 Jul 2009 09:53:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MULD9-00079i-NU for grub-devel@gnu.org; Fri, 24 Jul 2009 09:53:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MULD5-000784-0V for grub-devel@gnu.org; Fri, 24 Jul 2009 09:53:23 -0400 Received: from [199.232.76.173] (port=48338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MULD4-00077v-SO for grub-devel@gnu.org; Fri, 24 Jul 2009 09:53:18 -0400 Received: from flatline.sindominio.net ([82.144.4.26]:59165) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MULD4-000800-0u for grub-devel@gnu.org; Fri, 24 Jul 2009 09:53:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id E1580A06346D; Fri, 24 Jul 2009 15:53:15 +0200 (CEST) Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZycF491LnMEK; Fri, 24 Jul 2009 15:53:15 +0200 (CEST) Received: from nubol.oskuro.net (unknown [85.52.167.17]) by flatline.sindominio.net (Postfix) with ESMTPA id 52A37A063464; Fri, 24 Jul 2009 15:53:15 +0200 (CEST) Received: by nubol.oskuro.net (Postfix, from userid 1000) id B0D723AE535; Fri, 24 Jul 2009 15:53:12 +0200 (CEST) Date: Fri, 24 Jul 2009 15:53:12 +0200 From: Jordi Mallach To: The development of GRUB 2 Message-ID: <20090724135312.GA12558@nubol.oskuro.net> References: <1248440101.3510.32.camel@fz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1248440101.3510.32.camel@fz.local> Organization: SinDominio X-Operating-System: Debian GNU/Linux sid (Linux 2.6.30-1-686 i686) User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: 536846@bugs.debian.org Subject: Re: [Fwd: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted] X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2009 13:53:23 -0000 On Fri, Jul 24, 2009 at 02:55:01PM +0200, Felix Zielcke wrote: > How about just removing support for vmlinux kernels in grub-mkconfig? > I.e: >=20 > Index: util/grub.d/10_linux.in > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- util/grub.d/10_linux.in (revision 2441) > +++ util/grub.d/10_linux.in (working copy) > @@ -112,7 +112,7 @@ EOF > EOF > } > =20 > -list=3D`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do > +list=3D`for i in /boot/vmlinuz* /vmlinuz-* ; do > if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi > done` This was added because I requested it a year ago, when I started using GRUB on PowerPC, powerpc Debian kernels didn't ship a vmlinuz file, only vmlinux. This is not the case since 2.6.30, as apparently vmlinuz is now generating a vmlinuz file in postinstall, and I'm getting two entries fo= r=20 the same 2.6.30 kernel, 1 for vmlinux and one for vmlinuz. More interestingly, if I try to boot the vmlinuz entry I get dropped to OpenFirmware, with a friendly Illegal Memory Access error message. In short, I *need* vmlinux to boot my PPC, but need to hide the vmlinuz entries as they fail and are suppossed to be useful only to boot directly from OF. Ie, just the contrary that this user is asking for. Jordi --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/ On Fri, Jul 24, 2009 at 02:55:01PM +0200, Felix Zielcke wrote: > How about just removing support for vmlinux kernels in grub-mkconfig? > I.e: >=20 > Index: util/grub.d/10_linux.in > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- util/grub.d/10_linux.in (revision 2441) > +++ util/grub.d/10_linux.in (working copy) > @@ -112,7 +112,7 @@ EOF > EOF > } > =20 > -list=3D`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do > +list=3D`for i in /boot/vmlinuz* /vmlinuz-* ; do > if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi > done` >=20 > -------- Weitergeleitete Nachricht -------- > > Von: Alvaro Herrera > > Reply-to: Alvaro Herrera , > > 536846@bugs.debian.org > > An: Debian Bug Tracking System > > Betreff: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted > > Datum: Mon, 13 Jul 2009 19:58:42 -0400 > >=20 > > Package: grub-pc > > Version: 1.96+20090603-2 > > Severity: normal > >=20 > >=20 > > I have a /boot/vmlinux-2.6.26 file that I installed some time ago for > > use with oprofile. Since the /etc/grub.d/10_linux script looks for > > files using the pattern /boot/vmlinu[xz]*, this file is automatically > > added to the boot menu, and moreover it is selected as the first entr= y. > >=20 > > However, this file doesn't boot properly. Grub gives a message sayin= g > > so and then sits there waiting for user input. In practice it means = I > > have to watch over the boot sequence or the workstation is as good as > > halted for all practical purposes. > >=20 > > What I've been doing is edit 10_linux and change the /boot/vmlinu[xz]= * > > pattern to /boot/vmlinuz*, but each time grub-pc is upgraded I have t= o > > edit the file again. I've been doing this for several releases and i= t > > has gotten old now. > >=20 > > So my request is: can this pattern be turned into /boot/vmlinuz* in t= he > > file distributed with the package? I guess it boils down to whether > > there are still valid uncompressed (vmlinux) kernels that can be boot= ed > > at all. > >=20 > >=20 > > -- Package-specific info: > >=20 > > *********************** BEGIN /proc/mounts > > /dev/sda1 / ext3 rw,relatime,errors=3Dremount-ro,data=3Dordered 0 0 > > /dev/sda6 /usr ext3 rw,relatime,errors=3Dcontinue,data=3Dordered 0 0 > > /dev/sda7 /var ext3 rw,noatime,errors=3Dcontinue,data=3Dordered 0 0 > > /dev/md3 /home ext3 rw,noatime,errors=3Dcontinue,data=3Dwriteback 0 0 > > /dev/md4 /home/fotos ext3 rw,noatime,errors=3Dcontinue,data=3Dordered= 0 0 > > /dev/dm-0 /home/media ext3 rw,noatime,errors=3Dcontinue,data=3Dordere= d 0 0 > > /dev/sda5 /tmp ext2 rw,noatime,errors=3Dcontinue 0 0 > > *********************** END /proc/mounts > >=20 > > *********************** BEGIN /boot/grub/device.map > > (hd0) /dev/sda > > (hd1) /dev/sdb > > (hd2) /dev/sdc > > *********************** END /boot/grub/device.map > >=20 > > *********************** BEGIN /boot/grub/grub.cfg > > # > > # DO NOT EDIT THIS FILE > > # > > # It is automatically generated by /usr/sbin/grub-mkconfig using temp= lates > > # from /etc/grub.d and settings from /etc/default/grub > > # > >=20 > > ### BEGIN /etc/grub.d/00_header ### > > set default=3D0 > > set timeout=3D5 > > set root=3D(hd0,6) > > search --fs-uuid --set 9cf20f48-136a-4284-9048-4720baa20dfb > > if loadfont /share/grub/ascii.pf2 ; then > > set gfxmode=3D640x480 > > insmod gfxterm > > insmod vbe > > if terminal_output gfxterm ; then true ; else > > # For backward compatibility with versions of terminal.mod that d= on't > > # understand terminal_output > > terminal gfxterm > > fi > > fi > > ### END /etc/grub.d/00_header ### > >=20 > > ### BEGIN /etc/grub.d/05_debian_theme ### > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > insmod png > > if background_image /boot/grub/moreblue-orbit-grub.png ; then > > set color_normal=3Dblack/black > > set color_highlight=3Dmagenta/black > > else > > set menu_color_normal=3Dcyan/blue > > set menu_color_highlight=3Dwhite/blue > > fi > > ### END /etc/grub.d/05_debian_theme ### > >=20 > > ### BEGIN /etc/grub.d/10_linux ### > > menuentry "Debian GNU/Linux, linux 2.6.26" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinux-2.6.26 root=3D/dev/sda1 ro quiet=20 > > initrd /boot/initrd.img-2.6.26 > > } > > menuentry "Debian GNU/Linux, linux 2.6.26 (recovery mode)" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinux-2.6.26 root=3D/dev/sda1 ro single quiet > > initrd /boot/initrd.img-2.6.26 > > } > > menuentry "Debian GNU/Linux, linux 2.6.26" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinuz-2.6.26 root=3D/dev/sda1 ro quiet=20 > > initrd /boot/initrd.img-2.6.26 > > } > > menuentry "Debian GNU/Linux, linux 2.6.26 (recovery mode)" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinuz-2.6.26 root=3D/dev/sda1 ro single quiet > > initrd /boot/initrd.img-2.6.26 > > } > > menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinuz-2.6.25-2-amd64 root=3D/dev/sda1 ro quiet=20 > > initrd /boot/initrd.img-2.6.25-2-amd64 > > } > > menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64 (recovery mode)" { > > set root=3D(hd0,1) > > search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8 > > linux /boot/vmlinuz-2.6.25-2-amd64 root=3D/dev/sda1 ro single quiet > > initrd /boot/initrd.img-2.6.25-2-amd64 > > } > > ### END /etc/grub.d/10_linux ### > >=20 > > ### BEGIN /etc/grub.d/30_os-prober ### > > ### END /etc/grub.d/30_os-prober ### > >=20 > > ### BEGIN /etc/grub.d/40_custom ### > > # This file is an example on how to add custom entries > > ### END /etc/grub.d/40_custom ### > > *********************** END /boot/grub/grub.cfg > >=20 > > -- System Information: > > Debian Release: squeeze/sid > > APT prefers testing > > APT policy: (990, 'testing') > > Architecture: amd64 (x86_64) > >=20 > > Kernel: Linux 2.6.26 (SMP w/2 CPU cores) > > Locale: LANG=3Des_CL.UTF-8, LC_CTYPE=3Des_CL.UTF-8 (charmap=3DUTF-8) > > Shell: /bin/sh linked to /bin/bash > >=20 > > Versions of packages grub-pc depends on: > > ii debconf [debconf-2.0] 1.5.26 Debian configuration man= agement sy > > ii grub-common 1.96+20090603-2 GRand Unified Bootloader= , version=20 > > ii libc6 2.9-12 GNU C Library: Shared li= braries > >=20 > > grub-pc recommends no packages. > >=20 > > Versions of packages grub-pc suggests: > > ii desktop-base 5.0.5 common files for the Deb= ian Deskto > > ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM = filesystem > > pn os-prober (no description availabl= e) > >=20 > > -- debconf information: > > * grub-pc/linux_cmdline: > > * grub-pc/chainload_from_menu.lst: true > > * grub-pc/install_devices: /dev/sda > >=20 > >=20 > >=20 > > _______________________________________________ > > Pkg-grub-devel mailing list > > Pkg-grub-devel@lists.alioth.debian.org > > http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel >=20 >=20 > --=20 > Felix Zielcke >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/