* Provide Memtest86 as a module.
svn path=/nixos/branches/modular-nixos/; revision=15904
This commit is contained in:
parent
37edcf4fae
commit
6023722135
modules/installer/cd-dvd
@ -24,7 +24,7 @@ let
|
||||
in
|
||||
|
||||
{
|
||||
require = [./iso-image.nix];
|
||||
require = [./iso-image.nix ./memtest.nix];
|
||||
|
||||
# Use Linux 2.6.29.
|
||||
boot.kernelPackages = pkgs.kernelPackages_2_6_29;
|
||||
@ -122,5 +122,9 @@ in
|
||||
chown -R root.root /etc/nixos
|
||||
'';
|
||||
|
||||
|
||||
services.mingetty.helpLine =
|
||||
''
|
||||
|
||||
Log in as "root" with an empty password.
|
||||
'';
|
||||
}
|
||||
|
24
modules/installer/cd-dvd/memtest.nix
Normal file
24
modules/installer/cd-dvd/memtest.nix
Normal file
@ -0,0 +1,24 @@
|
||||
# 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;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user