2009-06-09 14:02:52 +02: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 17:45:41 +01:00
|
|
|
boot.loader.grub.extraEntries =
|
2009-06-09 14:02:52 +02:00
|
|
|
''
|
2009-11-10 22:42:38 +01:00
|
|
|
menuentry "Memtest86+" {
|
|
|
|
linux16 ${memtestPath}
|
|
|
|
}
|
2009-06-09 14:02:52 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
isoImage.contents =
|
|
|
|
[ { source = pkgs.memtest86 + "/memtest.bin";
|
|
|
|
target = memtestPath;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|