From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: [Fwd: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted]
Date: Fri, 24 Jul 2009 14:55:01 +0200 [thread overview]
Message-ID: <1248440101.3510.32.camel@fz.local> (raw)
How about just removing support for vmlinux kernels in grub-mkconfig?
I.e:
Index: util/grub.d/10_linux.in
===================================================================
--- util/grub.d/10_linux.in (revision 2441)
+++ util/grub.d/10_linux.in (working copy)
@@ -112,7 +112,7 @@ EOF
EOF
}
-list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
+list=`for i in /boot/vmlinuz* /vmlinuz-* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
-------- Weitergeleitete Nachricht --------
> Von: Alvaro Herrera <alvherre@alvh.no-ip.org>
> Reply-to: Alvaro Herrera <alvherre@alvh.no-ip.org>,
> 536846@bugs.debian.org
> An: Debian Bug Tracking System <submit@bugs.debian.org>
> Betreff: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted
> Datum: Mon, 13 Jul 2009 19:58:42 -0400
>
> Package: grub-pc
> Version: 1.96+20090603-2
> Severity: normal
>
>
> 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 entry.
>
> However, this file doesn't boot properly. Grub gives a message saying
> 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.
>
> 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 to
> edit the file again. I've been doing this for several releases and it
> has gotten old now.
>
> So my request is: can this pattern be turned into /boot/vmlinuz* in the
> file distributed with the package? I guess it boils down to whether
> there are still valid uncompressed (vmlinux) kernels that can be booted
> at all.
>
>
> -- Package-specific info:
>
> *********************** BEGIN /proc/mounts
> /dev/sda1 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
> /dev/sda6 /usr ext3 rw,relatime,errors=continue,data=ordered 0 0
> /dev/sda7 /var ext3 rw,noatime,errors=continue,data=ordered 0 0
> /dev/md3 /home ext3 rw,noatime,errors=continue,data=writeback 0 0
> /dev/md4 /home/fotos ext3 rw,noatime,errors=continue,data=ordered 0 0
> /dev/dm-0 /home/media ext3 rw,noatime,errors=continue,data=ordered 0 0
> /dev/sda5 /tmp ext2 rw,noatime,errors=continue 0 0
> *********************** END /proc/mounts
>
> *********************** BEGIN /boot/grub/device.map
> (hd0) /dev/sda
> (hd1) /dev/sdb
> (hd2) /dev/sdc
> *********************** END /boot/grub/device.map
>
> *********************** BEGIN /boot/grub/grub.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/grub-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
>
> ### BEGIN /etc/grub.d/00_header ###
> set default=0
> set timeout=5
> set root=(hd0,6)
> search --fs-uuid --set 9cf20f48-136a-4284-9048-4720baa20dfb
> if loadfont /share/grub/ascii.pf2 ; then
> set gfxmode=640x480
> insmod gfxterm
> insmod vbe
> if terminal_output gfxterm ; then true ; else
> # For backward compatibility with versions of terminal.mod that don't
> # understand terminal_output
> terminal gfxterm
> fi
> fi
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/05_debian_theme ###
> set root=(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=black/black
> set color_highlight=magenta/black
> else
> set menu_color_normal=cyan/blue
> set menu_color_highlight=white/blue
> fi
> ### END /etc/grub.d/05_debian_theme ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry "Debian GNU/Linux, linux 2.6.26" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinux-2.6.26 root=/dev/sda1 ro quiet
> initrd /boot/initrd.img-2.6.26
> }
> menuentry "Debian GNU/Linux, linux 2.6.26 (recovery mode)" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinux-2.6.26 root=/dev/sda1 ro single quiet
> initrd /boot/initrd.img-2.6.26
> }
> menuentry "Debian GNU/Linux, linux 2.6.26" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinuz-2.6.26 root=/dev/sda1 ro quiet
> initrd /boot/initrd.img-2.6.26
> }
> menuentry "Debian GNU/Linux, linux 2.6.26 (recovery mode)" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinuz-2.6.26 root=/dev/sda1 ro single quiet
> initrd /boot/initrd.img-2.6.26
> }
> menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinuz-2.6.25-2-amd64 root=/dev/sda1 ro quiet
> initrd /boot/initrd.img-2.6.25-2-amd64
> }
> menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64 (recovery mode)" {
> set root=(hd0,1)
> search --fs-uuid --set 550f142c-dd6e-46cf-a267-c32d331b6da8
> linux /boot/vmlinuz-2.6.25-2-amd64 root=/dev/sda1 ro single quiet
> initrd /boot/initrd.img-2.6.25-2-amd64
> }
> ### END /etc/grub.d/10_linux ###
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> ### END /etc/grub.d/30_os-prober ###
>
> ### 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
>
> -- System Information:
> Debian Release: squeeze/sid
> APT prefers testing
> APT policy: (990, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
> Locale: LANG=es_CL.UTF-8, LC_CTYPE=es_CL.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages grub-pc depends on:
> ii debconf [debconf-2.0] 1.5.26 Debian configuration management sy
> ii grub-common 1.96+20090603-2 GRand Unified Bootloader, version
> ii libc6 2.9-12 GNU C Library: Shared libraries
>
> grub-pc recommends no packages.
>
> Versions of packages grub-pc suggests:
> ii desktop-base 5.0.5 common files for the Debian Deskto
> ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM filesystem
> pn os-prober <none> (no description available)
>
> -- debconf information:
> * grub-pc/linux_cmdline:
> * grub-pc/chainload_from_menu.lst: true
> * grub-pc/install_devices: /dev/sda
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
--
Felix Zielcke
next reply other threads:[~2009-07-24 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 12:55 Felix Zielcke [this message]
2009-07-24 12:59 ` [Fwd: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted] Pavel Roskin
2009-07-24 13:53 ` Jordi Mallach
2009-07-24 14:08 ` Jordi Mallach
2009-07-24 15:01 ` Pavel Roskin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1248440101.3510.32.camel@fz.local \
--to=fzielcke@z-51.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.