| 15 Nov 2022 |
K900 | I did a bad | 22:25:29 |
K900 | For now | 22:25:32 |
@elvishjerricco:matrix.org | ? | 22:25:36 |
@andreas.schraegle:helsinki-systems.de | hm. we could also just filter out pkgs.util-linux from system.fsPackages 😬 | 22:25:55 |
K900 | initrd.systemd.extraBin = lib.mkForce {}; | 22:26:12 |
@elvishjerricco:matrix.org | nah; including all fsPackages is wrong anyway, since it in theory includes stage-2-exclusive FSes | 22:26:18 |
@andreas.schraegle:helsinki-systems.de | mapping over boot.initrd.kernelModules ++ boot.initrd.availableKernelModules sounds fragile, IMHO. maybe introducing boot.initrd.fsPackages and setting it in the filesystem modules might work? | 22:28:07 |
K900 | We can map over fileSystems and filter on requiredForBoot or whatever that flag is | 22:28:35 |
@elvishjerricco:matrix.org | In reply to @andreas.schraegle:helsinki-systems.de mapping over boot.initrd.kernelModules ++ boot.initrd.availableKernelModules sounds fragile, IMHO. maybe introducing boot.initrd.fsPackages and setting it in the filesystem modules might work? A boot.initrd.fsPackages option would be functionally identical to boot.initrd.systemd.initrdBin | 22:28:47 |
@elvishjerricco:matrix.org | Mapping over fileSystems is better than the kernel modules I think, K900 | 22:29:08 |
K900 | I'm pretty sure the kernel modules get added based on that anyway | 22:29:24 |
K900 | So it's just skipping an indirection | 22:29:28 |
@elvishjerricco:matrix.org | yea | 22:29:29 |
@elvishjerricco:matrix.org | Anyone know where the translation fsType -> kernel module happens? | 22:29:42 |
@elvishjerricco:matrix.org | Could help inform how to do this | 22:29:47 |
K900 | I found it once | 22:29:49 |
K900 | But I don't remember where | 22:29:58 |
K900 | ...or how | 22:30:14 |
@elvishjerricco:matrix.org | Probably something to do with boot.initrd.supportedFilesystems | 22:32:26 |
@andreas.schraegle:helsinki-systems.de | the pattern seems to be that they're all set here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1.nix#L748
and them the filesystem modules do use that, e.g. here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/xfs.nix | 22:34:10 |
@elvishjerricco:matrix.org | yea, but I need to figure out how that's translated to available kernel modules | 22:34:47 |
@andreas.schraegle:helsinki-systems.de | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/xfs.nix#L16 | 22:34:58 |
@elvishjerricco:matrix.org | ah, so it isn't... | 22:35:17 |
@elvishjerricco:matrix.org | darn | 22:35:18 |
@andreas.schraegle:helsinki-systems.de | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/btrfs.nix#L56 | 22:35:36 |
@andreas.schraegle:helsinki-systems.de | yup. every module just does that afaict. | 22:35:45 |
@elvishjerricco:matrix.org | yea so probably need to go through and add a bunch of explicit definitions of fs packages for initrd in each of those... | 22:36:30 |
@elvishjerricco:matrix.org | did not want to have to do that | 22:36:34 |
K900 | Looks like they already do that for extraUtils | 22:37:29 |
K900 | Just awkwardly | 22:37:32 |