!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

84 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
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea, I think you'd want it to fire for each state change. "It's degraded." "It's available"06:41:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd then the user can decide whether to try a degraded import06:41:26
@uep:matrix.org@uep:matrix.orgbroadly speaking not really worth it I think06:41:28
@uep:matrix.org@uep:matrix.orgOr rather, effort better spent into looking into why 9s of waiting is needed even after all devices have appeared.06:42:12
@uep:matrix.org@uep:matrix.orgbut even then, meh06:42:23
@uep:matrix.org@uep:matrix.orgfwiw, on my laptop there is no "udev settling time" in old stage1, and the prompt is almost instant. About to try it with systemd stage 1 too06:43:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org well old initrd definitely uses udev settle 06:44:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1-init.sh#L25906:44:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgZFS stuff doesn't happen until after that06:44:42
@uep:matrix.org@uep:matrix.orgok, no messages about it, at least, and no delay06:45:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea I'd like to know what that's about...06:45:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMaybe we just have too many udev rules in stage 1?06:45:44
@uep:matrix.org@uep:matrix.orgthere is an annoying pause waiting for a swap zvol to appear, after the passwd prompt06:46:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.org (sidenote, you really don't want your swap on ZFS at all) 06:46:55
@uep:matrix.org@uep:matrix.orgah, damn, the laptop is doing a big update as part of the rebuild, may take a minute ore06:46:59
@uep:matrix.org@uep:matrix.orgyeah, I know. Bit of legacy issue there with too-small a real swap partition06:47:27
@uep:matrix.org@uep:matrix.orgthe zvol is lower priority and rarely gets hit06:47:58
@uep:matrix.org@uep:matrix.org(the pool and partitioning long pre-dates nixos, it was running ubuntu zfs for years)06:48:54
@uep:matrix.org@uep:matrix.orgok, very different timing on the laptop!06:50:06
@uep:matrix.org@uep:matrix.orgno wait for settling, and 🎉 no wait now for the zvol swap to appear, so faster boot overall06:50:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell that's good at least :)06:50:52
@uep:matrix.org@uep:matrix.orgthat was actually the reason to try, I sort of expected it might help06:51:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.org in theory it should 06:51:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgin practice it seems a second or 3 slower on a lot of people's machines06:51:53
@uep:matrix.org@uep:matrix.orgclearly depends on what's in the device tree.06:52:22
@uep:matrix.org@uep:matrix.org
Nov 09 17:49:44 localhost systemd[1]: Finished Coldplug All udev Devices.
Nov 09 17:49:44 localhost systemd[1]: Starting Wait for udev To Complete Device Initialization...
Nov 09 17:49:44 localhost systemd[1]: Finished Wait for udev To Complete Device Initialization.
06:54:34
@uep:matrix.org@uep:matrix.org(more messages in between of course, but the timing delay is not noticable on screen)06:55:02
@uep:matrix.org@uep:matrix.org
In reply to @elvishjerricco:matrix.org
the udev settle thing confused me, but then I remembered zfs pulls that in

missed this before, there's even a note about it :)

Nov 09 17:49:44 localhost udevadm[132]: systemd-udev-settle.service is deprecated. Please fix zfs-import-rpool.service not to pull it in.
06:59:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyep. There's even a github issue about it: https://github.com/openzfs/zfs/issues/1089107:01:00
@uep:matrix.org@uep:matrix.orgcomments in there refer to what we discussed as "incremental assembly"07:08:10

Show newer messages


Back to Room ListRoom Version: 6