nixpkgs/modules/installer/cd-dvd/memtest.nix
Lluís Batlle i Rossell 6e281e46b7 I update the name of the memtest entry in grub of the iso images,
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
2012-04-09 20:30:14 +00:00

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;
}
];
}