6e281e46b7
because it can be overriden choosing another memtest86. As an effect of a change in nixpgks, the isos will include memtest86 4.0a instead of memtest86+ 4.20, only because the former is released later, and I deduce it should work better. svn path=/nixos/trunk/; revision=33691
28 lines
477 B
Nix
28 lines
477 B
Nix
# 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";
|
|
|
|
memtest86 = pkgs.memtest86;
|
|
|
|
in
|
|
|
|
{
|
|
boot.loader.grub.extraEntries =
|
|
''
|
|
menuentry "${memtest86.name}" {
|
|
linux16 ${memtestPath}
|
|
}
|
|
'';
|
|
|
|
isoImage.contents =
|
|
[ { source = memtest86 + "/memtest.bin";
|
|
target = memtestPath;
|
|
}
|
|
];
|
|
}
|