Package: grub-pc
Version: 1.96+20080724-8
Severity: wishlist

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 <[EMAIL PROTECTED]>
# 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

-- Package-specific info:

    <does not apply as the system is my dev workstation running sid>

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (991, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-grml64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.iso885915, LC_CTYPE=en_US.iso885915 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Attachment: 09_default
Description: application/shellscript

Reply via email to