2009-06-09 13:02:52 +01:00
|
|
|
# This module adds Memtest86 to the Grub boot menu on the CD. !!! It
|
|
|
|
# would be nice if this also worked for normal configurations.
|
|
|
|
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
memtestPath = "/boot/memtest.bin";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2009-11-13 16:45:41 +00:00
|
|
|
boot.loader.grub.extraEntries =
|
2009-06-09 13:02:52 +01:00
|
|
|
''
|
2009-11-10 21:42:38 +00:00
|
|
|
menuentry "Memtest86+" {
|
|
|
|
linux16 ${memtestPath}
|
|
|
|
}
|
2009-06-09 13:02:52 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
isoImage.contents =
|
|
|
|
[ { source = pkgs.memtest86 + "/memtest.bin";
|
|
|
|
target = memtestPath;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|