From 59cbb85ebee0d1a3b6cd07069e0cc93eb6df746b Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 8 Jun 2024 12:23:39 +0200 Subject: [PATCH] fix: debug attempts for the weird reboot issue Signed-off-by: Raito Bezarius --- hosts/epyc.nix | 5 +++-- modules/hardware/supermicro-H12SSL-i.nix | 10 ++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/epyc.nix b/hosts/epyc.nix index f84a8f4..10a8d07 100644 --- a/hosts/epyc.nix +++ b/hosts/epyc.nix @@ -25,8 +25,9 @@ in rootless.enable = true; }; - # We want to use EEVDF and AMD-related niceties. - boot.kernelPackages = pkgs.linuxPackages_latest; + # TODO: there's a critical bug on 6.8+ where btrfs won't mount the rootfs at all. + # Do not upgrade until it is fixed. Ping Raito when needed. + # boot.kernelPackages = pkgs.linuxPackage_latest; # Open public access to our PostgreSQL. services.postgresql.enable = true; diff --git a/modules/hardware/supermicro-H12SSL-i.nix b/modules/hardware/supermicro-H12SSL-i.nix index 455f2f4..68ffc38 100644 --- a/modules/hardware/supermicro-H12SSL-i.nix +++ b/modules/hardware/supermicro-H12SSL-i.nix @@ -8,12 +8,18 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.kernelParams = [ "pci=realloc" ]; + boot.kernelParams = [ "pci=realloc" "boot.shell_on_fail" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.initrd.extraUtilsCommands = '' + copy_bin_and_libs ${pkgs.nvme-cli}/bin/nvme + copy_bin_and_libs ${pkgs.util-linux}/bin/blkzone + copy_bin_and_libs ${pkgs.util-linux}/bin/lsblk + ''; + boot.initrd.systemd.enable = lib.mkForce false; fileSystems."/" = @@ -34,7 +40,7 @@ swapDevices = [ { device = "/dev/disk/by-uuid/93e251e1-1bfc-4bd4-8585-ea2eae7795bf"; } - ]; + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;