nixos installer: don't log refused packets to console

Fixes #19764.

Changed files
+6 -6
nixos
-2
nixos/modules/installer/cd-dvd/iso-image.nix
···
system.boot.loader.kernelFile = "bzImage";
environment.systemPackages = [ pkgs.grub2 pkgs.grub2_efi pkgs.syslinux ];
-
boot.consoleLogLevel = mkDefault 7;
-
# In stage 1 of the boot, mount the CD as the root FS by label so
# that we don't need to know its device. We pass the label of the
# root filesystem on the kernel command line, rather than in
-1
nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix
···
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["console=ttyS0,115200n8" "console=ttymxc0,115200n8" "console=ttyAMA0,115200n8" "console=ttyO0,115200n8" "console=tty0"];
-
boot.consoleLogLevel = 7;
# FIXME: this probably should be in installation-device.nix
users.extraUsers.root.initialHashedPassword = "";
-1
nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix
···
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelPackages = pkgs.linuxPackages_rpi;
-
boot.consoleLogLevel = 7;
# FIXME: this probably should be in installation-device.nix
users.extraUsers.root.initialHashedPassword = "";
-2
nixos/modules/installer/netboot/netboot.nix
···
system.boot.loader.kernelFile = "bzImage";
environment.systemPackages = [ pkgs.grub2 pkgs.grub2_efi pkgs.syslinux ];
-
boot.consoleLogLevel = mkDefault 7;
-
fileSystems."/" =
{ fsType = "tmpfs";
options = [ "mode=0755" ];
+6
nixos/modules/profiles/installation-device.nix
···
# the initrd builder.
system.extraDependencies = [ pkgs.stdenv pkgs.busybox pkgs.perlPackages.ArchiveCpio ];
+
# Show all debug messages from the kernel but don't log refused packets
+
# because we have the firewall enabled. This makes installs from the
+
# console less cumbersome if the machine has a public IP.
+
boot.consoleLogLevel = mkDefault 7;
+
networking.firewall.logRefusedConnections = mkDefault false;
+
};
}