Skip to content

Commit

Permalink
nixos installer: don't log refused packets to console
Browse files Browse the repository at this point in the history
Fixes #19764.
  • Loading branch information
fpletz committed Jan 9, 2017
1 parent 464c79e commit 8890814
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions nixos/modules/installer/cd-dvd/iso-image.nix
Expand Up @@ -232,8 +232,6 @@ in
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
Expand Down
Expand Up @@ -27,7 +27,6 @@ in

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 = "";
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix
Expand Up @@ -26,7 +26,6 @@ in
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 = "";
Expand Down
2 changes: 0 additions & 2 deletions nixos/modules/installer/netboot/netboot.nix
Expand Up @@ -30,8 +30,6 @@ with lib;
system.boot.loader.kernelFile = "bzImage";
environment.systemPackages = [ pkgs.grub2 pkgs.grub2_efi pkgs.syslinux ];

boot.consoleLogLevel = mkDefault 7;

fileSystems."/" =
{ fsType = "tmpfs";
options = [ "mode=0755" ];
Expand Down
6 changes: 6 additions & 0 deletions nixos/modules/profiles/installation-device.nix
Expand Up @@ -70,5 +70,11 @@ with lib;
# 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;

};
}

0 comments on commit 8890814

Please sign in to comment.