From 6527361d5241207421ed8d84ba2af55f535ee3de Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 22 Nov 2024 20:14:02 +0100 Subject: [PATCH] feat(boot): Add initial Factory Reset boot entry It crashes once parted has run, which should be fixed, but at least parted does its thing now. --- modules/image/builder.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/image/builder.nix b/modules/image/builder.nix index 86abad5..88df43c 100644 --- a/modules/image/builder.nix +++ b/modules/image/builder.nix @@ -77,6 +77,12 @@ let "/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/patos-factory-reset.conf".source = pkgs.writeText "patos-factory-reset.conf" '' + title Patos Factory Reset + efi /EFI/Linux/${config.system.boot.loader.ukiFile} + options ${toString config.boot.kernelParams} systemd.factory_reset=yes + sort-key z_factory_reset + ''; "/loader/entries/memtest86.conf".source = pkgs.writeText "memtest86.conf" '' title Memtest86+ efi /EFI/memtest86/memtest86.efi