Open
Description
Bug description
When running nixos-rebuild list-generations --flake . --json
I'm getting errors from the ls
command
I think this might be happening because I used WSL2-Linux-Kernel-Rolling to update my kernel to get WSL Memory Reclaiming to work. So the kernel is coming up as unknown, but this is only a guess
To Reproduce
Install updated kernel
Install NixOS WSL
Use flakes for system
Run nixos-rebuild list-generations --flake . --json
Logs
❯ nixos-rebuild list-generations --flake . --json
ls: cannot access '/nix/store/0jdik0dwkivhfks4wd8hm0gj19ggynbz-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/q42667alh58552sxiakxdy68hw5lfqpq-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/dxvf9dn9w5xk6ivfsfdna168qcaq1nci-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/0k8ywpi39xw1376pacj7mkbx061lfyin-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
[
{
"generation": 17,
"date": "2024-10-16T17:33:18Z",
"nixosVersion": "24.05.20240930.1719f27",
"kernelVersion": "Unknown",
"configurationRevision": "",
"specialisations": [
"*"
],
"current": true
},
...
]
WSL version
WSL version: 2.3.24.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.4894