mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
parent
c57a912016
commit
f0fd1c9bcf
@ -46,6 +46,13 @@ let
|
|||||||
INITRD /boot/initrd
|
INITRD /boot/initrd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
isolinuxMemtest86Entry = ''
|
||||||
|
LABEL memtest
|
||||||
|
MENU LABEL Memtest86+
|
||||||
|
LINUX /boot/memtest.bin
|
||||||
|
APPEND ${toString config.boot.loader.grub.memtest86.params}
|
||||||
|
'';
|
||||||
|
|
||||||
isolinuxCfg = baseIsolinuxCfg + (optionalString config.boot.loader.grub.memtest86.enable isolinuxMemtest86Entry);
|
isolinuxCfg = baseIsolinuxCfg + (optionalString config.boot.loader.grub.memtest86.enable isolinuxMemtest86Entry);
|
||||||
|
|
||||||
# The efi boot image
|
# The efi boot image
|
||||||
@ -289,6 +296,10 @@ in
|
|||||||
{ source = "${efiDir}/loader";
|
{ source = "${efiDir}/loader";
|
||||||
target = "/loader";
|
target = "/loader";
|
||||||
}
|
}
|
||||||
|
] ++ optionals config.boot.loader.grub.memtest86.enable [
|
||||||
|
{ source = "${pkgs.memtest86plus}/memtest.bin";
|
||||||
|
target = "/boot/memtest.bin";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.timeout = 10;
|
boot.loader.timeout = 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user