Skip to contentSkip to conversation

[Fwd: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted]

Fwd: Bug#536846: grub-pc: /boot/vmlinux entry cannot be booted Felix Zielcke 3 participants 5 messages Jul 24, 2009

lore
Share & tools
lore
#0 lore raw

How about just removing support for vmlinux kernels in grub-mkconfig? I.e:

grub.d/10_linux.in +1 -1
Index: util/grub.d/10_linux.in
===================================================================
@@ -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 --------

Quoted 169 lines

Von: Alvaro Herrera <[email protected]>
Reply-to: Alvaro Herrera <[email protected]>, [email protected]
An: Debian Bug Tracking System <[email protected]>
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
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel

Signature · 1 line
Felix Zielcke
#1 lore raw
Quoted 1 line · Felix Zielcke

How about just removing support for vmlinux kernels in grub-mkconfig?

I was thinking of it. However PowerPC uses vmlinux for the kernels, and maybe Sparc too. And I'm not sure about the i386-efi architecture.

We would need consider the architecture in 10_linux.in.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
In reply to Felix Zielcke
Quoted 8 lines · Felix Zielcke

How about just removing support for vmlinux kernels in grub-mkconfig? I.e:

Index: util/grub.d/10_linux.in
===================================================================

grub.d/10_linux.in EOF · line 117

Quoted 7 lines
grub.d/10_linux.in +1 -1
@@ -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`

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 for 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

Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/
Quoted 197 lines · Felix Zielcke

How about just removing support for vmlinux kernels in grub-mkconfig? I.e:

Index: util/grub.d/10_linux.in
===================================================================

grub.d/10_linux.in +1 -2
@@ -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 --------
Quoted 169 lines

Von: Alvaro Herrera <[email protected]>
Reply-to: Alvaro Herrera <[email protected]>, [email protected]
An: Debian Bug Tracking System <[email protected]>
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
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel

Signature · 8 lines
Felix Zielcke



_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/
#3 lore raw
Quoted 2 lines · Jordi Mallach

More interestingly, if I try to boot the vmlinuz entry I get dropped to OpenFirmware, with a friendly Illegal Memory Access error message.

Invalid memory access at %SRR0: 00203b94 %Srr1: 00003030
load-size=edc0 adler32=e7f75f9f

Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/
#4 lore raw
In reply to Jordi Mallach
Quoted 3 lines · Jordi Mallach

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.

OK, I'm ready to apply a patch to 10_linux.in that is based on research for all platforms supported by GRUB. I'm sorry, I have no time to research it myself at the moment.

Signature · 2 lines
Regards,
Pavel Roskin