On Thu, 13 Jun 2013 17:05:15 +0300, Nikos Chantziaras wrote: > add this grub entry: > > title=Memtest86+ > root (hd0,0) > kernel /boot/memtest86plus/memtest.bin > > (Adapt the "hd0,0" of course to be the same disk as the one you're > using to boot your kernel.) > > That's it. Now your boot menu will include a "Memtest86+" option. > This is for grub 1 though. If you migrated to grub 2 by now, then I > don't know how that boot entry would look like. I suspect it will be > some 300-line monstrosity or something :-|
With GRUB2 you don't have to add anything. /etc/grub.d/39_memtest86+ is
created by the ebuild, containing slightly less than 300 lines
#!/bin/sh
exec tail -n +3 $0
menuentry "memtest86+ 4.20" {
linux16 /boot/memtest86plus/memtest
}
menuentry "memtest86+ 4.20 (netbsd)" {
insmod bsd
knetbsd /boot/memtest86plus/memtest.netbsd
}
This is added to your menu automatically by grub2-mkconfig.
This is one of the great things about GRUB2, it allows install scripts,
whether they are package installers or complete distro installers, to add
to your GRUB menu without disturbing, or even needing to know about, your
existing configuration.
--
Neil Bothwick
Give a man a fish and you feed him for a day; teach him
to use the Net and he won't bother you for weeks.
signature.asc
Description: PGP signature

