From c75262f15a494d7736e9e7bf0386a5f08eb6d994 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 22 Nov 2024 09:49:02 +0100 Subject: [PATCH] feature(boot): Add memtest boot entry --- modules/image/builder.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/image/builder.nix b/modules/image/builder.nix index 4d7a94b..86abad5 100644 --- a/modules/image/builder.nix +++ b/modules/image/builder.nix @@ -76,6 +76,16 @@ let contents = { "/EFI/BOOT/BOOT${lib.toUpper efiArch}.EFI".source = "${pkgs.systemdUkify}/lib/systemd/boot/efi/systemd-boot${efiArch}.efi"; "/EFI/Linux/${config.system.boot.loader.ukiFile}".source = "${config.system.build.uki}/${config.system.boot.loader.ukiFile}"; + "/EFI/memtest86/memtest86.efi".source = "${pkgs.memtest86plus}/memtest.efi"; + "/loader/entries/memtest86.conf".source = pkgs.writeText "memtest86.conf" '' + title Memtest86+ + efi /EFI/memtest86/memtest86.efi + options console=ttyS0 + sort-key z_memtest + ''; + "/loader/loader.conf".source = pkgs.writeText "loader.conf" '' + timeout 2 + ''; }; repartConfig = { Type = "esp";