!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 Apr 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIt'd be great to gets docs unhidden for 23.0507:41:33
@yinfeng:li7g.comYinfeng changed their profile picture.15:05:02
@yinfeng:li7g.comYinfeng changed their profile picture.15:08:57
@yinfeng:li7g.comYinfeng removed their profile picture.15:12:08
@yinfeng:li7g.comYinfeng set a profile picture.15:12:36
16 Apr 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org flokli: I think I've addressed all the comments on the networkd PR. Can we hit the merge button sometime soon? 00:47:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org flokli: If flushBeforeStage2 is a blocker, let's split that out into a separate PR. I'm just confused why its a question now when it's been a part of scripted initrd for a long time. 16:34:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * flokli: If flushBeforeStage2 is a blocker, let's split that out into a separate PR. I'm just confused why it's a question now when it's been a part of scripted initrd for a long time. 16:34:22
@hexa:lossy.network@hexa:lossy.networknot sure what is unclear about setting the network down before leaving stage116:39:03
@hexa:lossy.network@hexa:lossy.networkI consider that a mandatory step to not break network settings that stage2 wants to apply16:39:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org hexa: the systemd-networkd man page suggests not bringing things down before stage 2 so that everything stays configured all the way through. I think for the typical case, the configuration in stage 2 and stage 1 will be the same, so this seems fine to me? 16:40:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgi.e. DHCP on interfaces X, Y, Z, and that's about it16:41:01
@hexa:lossy.network@hexa:lossy.networkwhat if I try to rename a link in my stage2?16:41:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI would say that's atypical16:41:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and you can set flushBeforeStage2 = true for that :) 16:41:28
@hexa:lossy.network@hexa:lossy.networkbasically what you're saying is that people should configure their whole networking in stage1 as opposed to stage2?16:42:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgNo?16:42:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.org For stage 1, most people probably just want DHCP on one or all of the physical interfaces, as configured typically with networking.useDHCP or networking.interfaces.... Then stage 2 can take over network configuration and add any fancier things on top of that, but presumably most people will still want those same interfaces configured with DHCP 16:44:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * For stage 1, most people probably just want DHCP on one or all of the physical interfaces, as configured typically with networking.useDHCP or networking.interfaces... (often generated by nixos-generate-config). Then stage 2 can take over network configuration and add any fancier things on top of that, but presumably most people will still want those same interfaces configured with DHCP 16:44:48
@hexa:lossy.network@hexa:lossy.networkso your intent is to save one DHCP roundtrip in that scenario16:45:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMy intent was mainly to follow the suggestion in the systemd-networkd man page, and it made enough sense to me to make it default but still implement the flush behavior for those who want it16:46:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut also16:46:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthere's things like root on NFS that would rely on having flushing disabled16:46:52
@hexa:lossy.network@hexa:lossy.networkpersonally I configure a dedicated IPv6 address in stage1, and something else in stage2, so that I don't get conflicting hostkeys on SSH 🙂16:47:03
@hexa:lossy.network@hexa:lossy.networkno strong opinion, as you said I can enable flushing16:47:44
@hexa:lossy.network@hexa:lossy.network * no strong opinion, as you said I can enable flushing and I will16:47:50
@hexa:lossy.network@hexa:lossy.networksince it is configurable I don't see it as a blocker fwiw16:48:34
@hexa:lossy.network@hexa:lossy.networkthe default also doesn't bother me too much16:48:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Yea I think we'll leave flushing disabled by default when systemd initrd is enabled (and enabled by default with regular initrd, since that's the existing behavior). flokli does that sound ok to you? 16:49:52
@flokli:matrix.orgflokliSorry, i was busy with family stuff all day and couldn't get to reply on messages16:50:45

Show newer messages


Back to Room ListRoom Version: 6