Bug#282530: grub: add support for memtest86+ to new memtest86 option
Kiko Piris
Kiko Piris <menorqui@pirispons.net>, 282530@bugs.debian.org
Mon, 22 Nov 2004 21:22:00 +0100
Package: grub
Version: 0.95+cvs20040624-11
Severity: wishlist
Tags: patch
If user selects the memtest86 option in his menu.lst, and memtest86+ is
installed, then also add a kernel with this one.
This can be easily done with this patch:
---8<---
--- update-grub~ 2004-11-18 23:37:59.000000000 +0100
+++ update-grub 2004-11-22 21:16:26.000000000 +0100
@@ -783,6 +783,17 @@
write_kernel_entry "$kernelVersion" "" "" "$grub_root_device" \
"$kernel" "$currentOpt" "" "$initrd"
fi
+ if test -f "/boot/memtest86+.bin" ; then
+ kernelVersion="memtest86+"
+ kernel="$kernel_dir/memtest86+.bin"
+ currentOpt=
+ initrd=
+
+ echo "Found kernel: $kernel"
+
+ write_kernel_entry "$kernelVersion" "" "" "$grub_root_device" \
+ "$kernel" "$currentOpt" "" "$initrd"
+ fi
fi
echo $end >> $buffer
--->8---
Thanks
--
Kiko
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=es_ES.ISO-8859-15, LC_CTYPE=es_ES.ISO-8859-15 (charmap=ISO-8859-15) (ignored: LC_ALL set to es_ES@euro)
Versions of packages grub depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
-- no debconf information