Bug#497052: grub-pc: please add /vmlinuz(.old) entries per default
Michael Gebetsroither
gebi at grml.org
Fri Aug 29 14:37:28 UTC 2008
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 <gebi at 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
-- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 09_default
Type: application/x-shellscript
Size: 612 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080829/c7a4b6ca/attachment.bin
More information about the Pkg-grub-devel
mailing list