!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
9 Nov 2022
@uep:matrix.org@uep:matrix.orgwhich is a reasonable name07:08:15
@uep:matrix.org@uep:matrix.organyway, at least when it appears we can just use it via systemd07:20:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Yea. Stage 2 ought to be able to use the cache file in a systemd generator to just generate the device dependencies for an import service, so that probably should have been done years ago 07:20:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut stage 1 can't have such a cache file07:21:03
@uep:matrix.org@uep:matrix.orghttps://github.com/openzfs/zfs/issues/10891#issuecomment-122623026207:28:07
@uep:matrix.org@uep:matrix.orgthis was my next thought! :)07:28:16
@uep:matrix.org@uep:matrix.orgfor the case of the desktop with the slow wait, it's a single nvme device that's clearly loaded.07:28:36
@uep:matrix.org@uep:matrix.orgmaybe a config option, off by default, to remove that dependency, usable for simple cases07:29:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.org uhhh we don't use the upstream zfs import services in nixos. We generate our own import services, one per pool. And while it depends on udev-settle, it shouldn't even exist if it's your root pool 07:30:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso I dunno what that guy's talking about07:30:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but we can't remove it even for simple cases, because we do need to wait for the appropriate device 07:30:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgNow, in my system... I did hax and cheats07:31:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd mine actually properly just waits on my nvme07:31:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut I had to hard code the device07:31:24
@uep:matrix.org@uep:matrix.orgyah07:31:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * uhhh we don't use the upstream zfs import services in nixos. We generate our own import services, one per pool. And while it depends on udev-settle, it shouldn't even exist (in stage 2) if it's your root pool 07:32:11
@uep:matrix.org@uep:matrix.orgremoving the dep / masking the service is very much the same.. racy, but basically always going to work?07:32:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI dunno what you mean07:32:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh I do have a stopgap idea though07:33:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We could add an option like zfs.pools.<name>.devices and make it so that if it's set for a given pool, that pool's import service depends on those device units instead of udev-settle 07:33:45
@uep:matrix.org@uep:matrix.orgnvme is pretty much always going to be there by the time any of this is running, basically... technically no, because the initrd was loaded by grub, but still07:34:09
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea, I would not be willing to hang my hat on that assumption07:34:24
@uep:matrix.org@uep:matrix.orgsure, but that's what masking the service does.07:35:35
@uep:matrix.org@uep:matrix.orgbeing more specific is good07:35:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgmasking what service?07:35:52
@uep:matrix.org@uep:matrix.orgsettle07:36:03
@uep:matrix.org@uep:matrix.org * udev-settle.service07:36:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh, yea masking that will just mean that anything that depends on it is liable to break07:36:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd I wouldn't want to do that07:36:33
@uep:matrix.org@uep:matrix.org
In reply to @elvishjerricco:matrix.org
We could add an option like zfs.pools.<name>.devices and make it so that if it's set for a given pool, that pool's import service depends on those device units instead of udev-settle
how does it figure out which of those need to be in stage 1?
07:36:57

Show newer messages


Back to Room ListRoom Version: 6