#497052 grub-pc: please add /vmlinuz(.old) entries per default

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Michael Gebetsroither
Date:
2024-07-31 18:03:03 UTC
Severity:
wishlist
#497052#5
Date:
2008-08-29 14:37:28 UTC
From:
To:
Hi,

Please provied the boot-entries for /vmlinuz(.old) as with grub-legacy.

I've set it before the normal linux boot entries because i need it
here. Feel free to rearrange it.

My scripts produces boot entries in the form of:
menuentry "Current kernel (vmlinuz-2.6.26-grml64)" {
    linux   /vmlinuz
    initrd  /initrd.img
}
menuentry "Old kernel (vmlinuz-2.6.23-grml64)" {
...

<inline for easier review>
BEGIN
#!/bin/bash -e
# Author:   Michael Gebetsroither <gebi@grml.org>
# License:  GPL v2 or any later version

printTemplate()
{
    local vmlinuz_="$1"
    local initrd_="$2"
    if [ -e "$vmlinuz_" ]; then
        local name_="`basename $(readlink $vmlinuz_)`"
        echo "Found linux image: $vmlinuz_ -> $name_" >&2
cat <<EOT
menuentry "Current kernel ($name_)" {
    linux   $vmlinuz_
EOT
    if [ -e "$initrd_" ]; then
        echo "Found initrd image: $initrd_" >&2
        echo -e "\tinitrd  $initrd_"
    fi
    echo "}"
fi

}

printTemplate /vmlinuz /initrd.img
printTemplate /vmlinuz.old /initrd.img.old

END

cu,
michael

#497052#8
Date:
2008-09-05 09:15:08 UTC
From:
To:
Hi,

This doesn't seem to be supported with GRUB Legacy.  Please, could you
clarify that?

If it wasn't supported before, I'm not very fond of introducing support
for those paths now.  Linux images argueably belong in /boot.

#497052#13
Date:
2009-07-24 23:52:22 UTC
From:
To:
Am Freitag, den 05.09.2008, 11:15 +0200 schrieb Robert Millan:

AFAICS grub-legacy only supports /boot/vmlinuz and /boot/vmlinuz.old but
not directly in /

#497052#18
Date:
2024-07-31 17:59:24 UTC
From:
To:
If there are no objections, I'm proposing that this bug be closed.

Kindest regards

Emyr


On Sat, 25 Jul 2009 01:52:22 +0200 Felix Zielcke <fzielcke@z-51.de> wrote:

 > Am Freitag, den 05.09.2008, 11:15 +0200 schrieb Robert Millan:
 > > On Fri, Aug 29, 2008 at 04:37:28PM +0200, Michael Gebetsroither wrote:
 > > > Package: grub-pc
 > > > Version: 1.96+20080724-8
 > > > Severity: wishlist
 > > >
 > > >
 > > > Hi,
 > > >
 > > > Please provied the boot-entries for /vmlinuz(.old) as with
grub-legacy.
 > >
 > > Hi,
 > >
 > > This doesn't seem to be supported with GRUB Legacy. Please, could you
 > > clarify that?
 > >
 > > If it wasn't supported before, I'm not very fond of introducing support
 > > for those paths now. Linux images argueably belong in /boot.
 > >
 >
 > AFAICS grub-legacy only supports /boot/vmlinuz and /boot/vmlinuz.old but
 > not directly in /
 >
 > --
 > Felix Zielcke
 > Proud Debian Maintainer
 >
 >
 >
 >