| 23 Jan 2025 |
matthewcroughan | > modprobe: FATAL: Module ahci not found in directory /nix/store/9hkr7vxlp2a59w3r3khn695hc85azg9m-linux-6.12.4-asahi-modules/lib/modules/6.12.4-asahi | 02:11:26 |
matthewcroughan | ;_; | 02:11:28 |
matthewcroughan | fix one, break another | 02:11:34 |
ElvishJerricco | there's some easy way to ignore missing modules | 02:11:49 |
matthewcroughan | calling it ignoreMissingKernelModules would have made things too easy | 02:12:22 |
matthewcroughan | have to call it allowImperativeAuxiliaryModules instead | 02:12:31 |
ElvishJerricco | it's not some convenient option. You have to do some silly overlay | 02:14:20 |
ElvishJerricco | nixpkgs.overlays = [(self: super: {
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
})];
| 02:14:48 |
ElvishJerricco | should probably just have a nixos option to allow missing in the stage 1 module | 02:15:00 |
matthewcroughan | could be made into an option | 02:15:00 |
matthewcroughan | └─sdb2 squashfs 4.0 | 02:15:33 |
matthewcroughan | lsblk -f reports this on my laptop | 02:15:36 |
matthewcroughan | I guess the label went missing | 02:15:40 |
matthewcroughan | that's why it's waiting forever | 02:15:43 |
matthewcroughan | "store" = {
storePaths = [ config.system.build.toplevel ];
stripNixStorePrefix = true;
repartConfig = {
Type = "linux-generic";
Label = "nix-store";
Format = "squashfs";
Minimize = "guess";
};
| 02:15:54 |
matthewcroughan | though the repartConfig is indeed there | 02:16:00 |
matthewcroughan | does squashfs/btrfs not support Label in repartConfig? | 02:16:08 |
matthewcroughan | Ah nvm, on my laptop I can see the /dev/disk/by-partlabel (not by-label) | 02:16:58 |
matthewcroughan | cd-dvd/iso-image.nix hasboot.initrd.availableKernelModules = [ "squashfs" "iso9660" "uas" "overlay" ] | 02:18:23 |
matthewcroughan | * cd-dvd/iso-image.nix has boot.initrd.availableKernelModules = [ "squashfs" "iso9660" "uas" "overlay" ] | 02:18:29 |
matthewcroughan | Must be one of those I'm missing | 02:18:33 |
matthewcroughan | if this works, then nixos/modules/tasks/filesystems/squashfs.nix should be fixed to include those | 02:19:29 |
matthewcroughan | * if this works, then nixos/modules/tasks/filesystems/squashfs.nix should be fixed to include those when present in the boot.initrd.supportedFilesystesm | 02:19:41 |
matthewcroughan | * if this works, then nixos/modules/tasks/filesystems/squashfs.nix should be fixed to include those when present in the boot.initrd.supportedFilesystems | 02:19:43 |
ElvishJerricco | matthewcroughan: I know what it is | 02:20:38 |
ElvishJerricco | wait | 02:20:41 |
ElvishJerricco | no | 02:20:42 |
ElvishJerricco | no I don't | 02:20:44 |
ElvishJerricco | I was going to say you need the loop module, but then your issue would be the mount itself failing, not waiting indefinitely on the device to appear | 02:21:03 |
ElvishJerricco | Anyway waiting on the device itself shouldn't depend on any FS driver; that's just straight up block device stuff | 02:21:25 |