From c71ebe0dc8f5540a9f5526d88377a906192b5d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 May 2024 13:12:57 +0200 Subject: [PATCH] netboot: drop syslinux and grub The comment says this is required by other modules but to be honest, I cannot see where. Bootloaders will be included automatically by nixos generation if their `installBootLoader` attribute references it. This helps us to make kexec images even smaller espeically when combined with the perlless profile. --- nixos/modules/installer/netboot/netboot.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix index 2228766aca96..93f806b75eb1 100644 --- a/nixos/modules/installer/netboot/netboot.nix +++ b/nixos/modules/installer/netboot/netboot.nix @@ -37,11 +37,6 @@ with lib; # here and it causes a cyclic dependency. boot.loader.grub.enable = false; - # !!! Hack - attributes expected by other modules. - environment.systemPackages = [ pkgs.grub2_efi ] - ++ (lib.optionals (lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.syslinux) - [pkgs.grub2 pkgs.syslinux]); - fileSystems."/" = mkImageMediaOverride { fsType = "tmpfs"; options = [ "mode=0755" ];