1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/modules/installer/cd-dvd/memtest.nix
Eelco Dolstra 091631b433 * Use Grub 2 on the installation CD. No graphics yet.
svn path=/nixos/branches/upstart-0.6/; revision=18325
2009-11-10 21:42:38 +00:00

26 lines
436 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";
in
{
boot.extraGrubEntries =
''
menuentry "Memtest86+" {
linux16 ${memtestPath}
}
'';
isoImage.contents =
[ { source = pkgs.memtest86 + "/memtest.bin";
target = memtestPath;
}
];
}