mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
Reverting 33692, because memtest in the iso was failing.
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
This commit is contained in:
parent
c02240082a
commit
2ca7e8a43e
@ -30,7 +30,8 @@ in
|
||||
|
||||
{
|
||||
require =
|
||||
[ ./iso-image.nix
|
||||
[ ./memtest.nix
|
||||
./iso-image.nix
|
||||
|
||||
# Profiles of this basic installation CD.
|
||||
../../profiles/all-hardware.nix
|
||||
@ -66,8 +67,6 @@ 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 ];
|
||||
|
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.
|
||||
|
||||
{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;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user