!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

82 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5126 Servers

Load older messages


SenderMessageTime
15 Nov 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI'll throw something together...22:25:18
@k900:0upti.meK900I did a bad22:25:29
@k900:0upti.meK900For now22:25:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.org?22:25:36
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de hm. we could also just filter out pkgs.util-linux from system.fsPackages 😬 22:25:55
@k900:0upti.meK900 initrd.systemd.extraBin = lib.mkForce {}; 22:26:12
@elvishjerricco:matrix.org@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@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:0upti.meK900 We can map over fileSystems and filter on requiredForBoot or whatever that flag is 22:28:35
@elvishjerricco:matrix.org@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@elvishjerricco:matrix.org Mapping over fileSystems is better than the kernel modules I think, K900 22:29:08
@k900:0upti.meK900I'm pretty sure the kernel modules get added based on that anyway22:29:24
@k900:0upti.meK900So it's just skipping an indirection22:29:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea22:29:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnyone know where the translation fsType -> kernel module happens?22:29:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgCould help inform how to do this22:29:47
@k900:0upti.meK900I found it once22:29:49
@k900:0upti.meK900But I don't remember where22:29:58
@k900:0upti.meK900...or how22:30:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Probably something to do with boot.initrd.supportedFilesystems 22:32:26
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dethe 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.nix22:34:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea, but I need to figure out how that's translated to available kernel modules22:34:47
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dehttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/xfs.nix#L1622:34:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah, so it isn't...22:35:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgdarn22:35:18
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dehttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/btrfs.nix#L5622:35:36
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.deyup. every module just does that afaict.22:35:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea 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@elvishjerricco:matrix.orgdid not want to have to do that22:36:34
@k900:0upti.meK900 Looks like they already do that for extraUtils 22:37:29

Show newer messages


Back to Room ListRoom Version: 6