forked from mirrors/nixpkgs
2ca7e8a43e
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
25 lines
372 B
Nix
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;
|
|
}
|
|
];
|
|
}
|