forked from mirrors/nixpkgs
Making also the system-tarball-pc show the memtest entry as the
pkgs.memtest86.name. svn path=/nixos/trunk/; revision=33693
This commit is contained in:
parent
9017ccf9fe
commit
849d136aa6
|
@ -32,7 +32,7 @@ let
|
|||
append initrd=initrd ip=dhcp nfsroot=/home/pcroot systemConfig=${config.system.build.toplevel} init=${config.system.build.toplevel}/init
|
||||
|
||||
label memtest
|
||||
MENU LABEL ^Memtest86+
|
||||
MENU LABEL ^${pkgs.memtest86.name}
|
||||
KERNEL memtest
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
# This module allows getting memtest86+ in grub menus.
|
||||
# This module allows getting memtest86 in grub menus.
|
||||
|
||||
{config, pkgs, ...}:
|
||||
|
||||
with pkgs.lib;
|
||||
let
|
||||
isEnabled = config.boot.loader.grub.memtest86;
|
||||
memtest86 = pkgs.memtest86;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -20,13 +21,13 @@ in
|
|||
config.boot.loader.grub = mkIf isEnabled {
|
||||
extraEntries =
|
||||
''
|
||||
menuentry "${pkgs.memtest86.name}" {
|
||||
menuentry "${memtest86.name}" {
|
||||
linux16 $bootRoot/memtest.bin
|
||||
}
|
||||
'';
|
||||
extraPrepareConfig =
|
||||
''
|
||||
cp ${pkgs.memtest86}/memtest.bin /boot/memtest.bin;
|
||||
cp ${memtest86}/memtest.bin /boot/memtest.bin;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue