1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/modules/installer/cd-dvd/memtest.nix
Lluís Batlle i Rossell 2ca7e8a43e Reverting 33692, because memtest in the iso was failing.
I set the grub entry for memtest to read "Memtest86", as suggested by Eelco.

I run:
svn merge -c -33692 ^/nixos/trunk
And edited the change a bit.


svn path=/nixos/trunk/; revision=33734
2012-04-10 21:18:48 +00:00

25 lines
372 B
Nix

# This module adds Memtest86 to the Grub boot menu on the CD.
{config, pkgs, ...}:
let
memtestPath = "/boot/memtest.bin";
in
{
boot.loader.grub.extraEntries =
''
menuentry "Memtest86" {
linux16 ${memtestPath}
}
'';
isoImage.contents =
[ { source = pkgs.memtest86 + "/memtest.bin";
target = memtestPath;
}
];
}