I have recently updated my flake nixpkgs on NixOS unstable (nix flake info shows github:NixOS/nixpkgs/f61125a668a320878494449750330ca58b78c557?narHash=sha256-BmPWzogsG2GsXZtlT%2BMTcAWeDK5hkbGRZTeZNW42fwA%3D) and am unable to boot.
Initially, I got messages like microcode: No sha256 digest for patch ID: 0xb404035 found as the first messages during the boot process, and after decrypting my drives messages like:
Failed to start create-needed-for-boot-dirs.service.
Failed to mount /sysroot.
Dependency failed for /sysroot/nix.
Dependency failed for Initrd File Systems.
Dependency failed for Find NixOS closure.
Dependency failed for /sysroot/usr/lib/nixos.
Dependency failed for Initrd Root File System.
Dependency failed for /sysroot/persist.
Dependency failed for /sysroot/run
I then updated my BIOS for my Gigabyte X870 Aorus Elite Wifi 7 motherboard from F4 to F8. Initially, I couldnβt even get past the BIOS as the bootloader failed due to an Invalid signature detectederror, it seems the BIOS update turned on Secure Boot.
I turned that off, got past bootloader, and the microcode messages were gone during boot, but after decrypting I still got the failed /sysroot mounting and dependencies.
I have an AMD 9800X3D, and the failing generation is kernel 6.17.10. My last successful generation was with nixpkgs01f116e4df6a15f4ccdffb1bcd41096869fb385 and kernel 6.16.12. I use ZFS.
bootctl status:
System:
Firmware: UEFI 2.90 (American Megatrends 5.35)
Firmware Arch: x64
Secure Boot: disabled
TPM2 Support: yes
Measured UKI: no
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 258.2
Features: β Boot counting
β Menu timeout control
β One-shot menu timeout control
β Default entry control
β One-shot entry control
β Support for XBOOTLDR partition
β Support for passing random seed to OS
β Load drop-in drivers
β Support Type #1 sort-key field
β Support @saved pseudo-entry
β Support Type #1 devicetree field
β Enroll SecureBoot keys
β Retain SHIM protocols
β Menu can be disabled
β Multi-Profile UKIs are supported
β Loader reports network boot URL
β Support Type #1 uki field
β Support Type #1 uki-url field
β Loader reports TPM2 active PCR banks
Partition: /dev/disk/by-partuuid/a84be96e-a1b2-42e3-a82b-a52758b54d9b
Loader: ββ/boot//EFI/BOOT/BOOTX64.EFI
Current Entry: nixos-generation-190.conf
Random Seed:
System Token: not set
Exists: yes
Available Boot Loaders on ESP:
ESP: /boot (/dev/disk/by-partuuid/a84be96e-a1b2-42e3-a82b-a52758b54d9b)
File: ββ/boot//EFI/systemd/systemd-bootx64.efi (systemd-boot 258.2)
ββ/boot//EFI/BOOT/BOOTX64.EFI (systemd-boot 258.2)
Boot Loaders Listed in EFI Variables:
Title: UEFI OS
ID: 0x0002
Status: active, boot-order
Partition: /dev/disk/by-partuuid/a84be96e-a1b2-42e3-a82b-a52758b54d9b
File: ββ/boot//EFI/BOOT/BOOTX64.EFI
Title: Windows Boot Manager
ID: 0x0000
Status: active, boot-order
Partition: /dev/disk/by-partuuid/dfe74d07-ea92-4d44-936b-36430fc3bd3a
File: ββ/boot//EFI/Microsoft/Boot/bootmgfw.efi
Boot Loader Entry Locations:
ESP: /boot (/dev/disk/by-partuuid/a84be96e-a1b2-42e3-a82b-a52758b54d9b, $BOOT)
config: /boot//loader/loader.conf
token: nixos
Default Boot Loader Entry:
type: Boot Loader Specification Type #1 (.conf)
title: NixOS (Generation 191 NixOS Yarara 26.05.20251205.f61125a (Linux 6.17.10), built on 2025-12-08)
id: nixos-generation-191.conf
source: /boot//loader/entries/nixos-generation-191.conf (on the EFI System Partition)
sort-key: nixos
version: Generation 191 NixOS Yarara 26.05.20251205.f61125a (Linux 6.17.10), built on 2025-12-08
machine-id: df374d06639f492eb6ab076160488b26
linux: /boot//EFI/nixos/ssphq3589qmdvplivrp28hmbacva6aam-linux-6.17.10-bzImage.efi
initrd: /boot//EFI/nixos/i5xrjziqn89r436id796qx858n52dlhj-initrd-linux-6.17.10-initrd.efi
options: init=/nix/store/360l9qp4vwdd3idwcgyxw16phkifyzn2-nixos-system-nixos-26.05.20251205.f61125a/init nohibernate root=fstab loglevel=4 lsm=landlock,yama,bpf nvidia-drm.modeset=1 nvidia-drm.fbdev=1 nvidia.NVreg_OpenRmEnableUnsupportedGpus=1
Any help is appreciated, thanks.