mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
Removing the special memtest.nix module for the isos, and using
the same as the usual nixos. I think this trivial change works; I checked the grub.cfg output generated in the iso_minimal. svn path=/nixos/trunk/; revision=33692
This commit is contained in:
parent
6e281e46b7
commit
9017ccf9fe
@ -30,8 +30,7 @@ in
|
||||
|
||||
{
|
||||
require =
|
||||
[ ./memtest.nix
|
||||
./iso-image.nix
|
||||
[ ./iso-image.nix
|
||||
|
||||
# Profiles of this basic installation CD.
|
||||
../../profiles/all-hardware.nix
|
||||
@ -67,6 +66,8 @@ in
|
||||
echo 1 > /proc/sys/vm/overcommit_memory
|
||||
'';
|
||||
|
||||
boot.loader.grub.memtest86 = true;
|
||||
|
||||
# To speed up installation a little bit, include the complete stdenv
|
||||
# in the Nix store on the CD.
|
||||
isoImage.storeContents = [ pkgs.stdenv pkgs.klibc pkgs.klibcShrunk ];
|
||||
|
@ -1,27 +0,0 @@
|
||||
# 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";
|
||||
|
||||
memtest86 = pkgs.memtest86;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
boot.loader.grub.extraEntries =
|
||||
''
|
||||
menuentry "${memtest86.name}" {
|
||||
linux16 ${memtestPath}
|
||||
}
|
||||
'';
|
||||
|
||||
isoImage.contents =
|
||||
[ { source = memtest86 + "/memtest.bin";
|
||||
target = memtestPath;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user