mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
6023722135
svn path=/nixos/branches/modular-nixos/; revision=15904
25 lines
419 B
Nix
25 lines
419 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 =
|
|
''
|
|
title Memtest86+
|
|
kernel ${memtestPath}
|
|
'';
|
|
|
|
isoImage.contents =
|
|
[ { source = pkgs.memtest86 + "/memtest.bin";
|
|
target = memtestPath;
|
|
}
|
|
];
|
|
}
|