!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
6 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Ok I think I have a crude fix for flushBeforeStage2 to use KeepConfiguration instead of our screwy service. It's not meaningfully different, but it's certainly cleaner. Though my code for it could use some cleanup... 20:59:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.org That's a separate thing from oddlama's problem, so I guess I'll make these two separate PRs 21:00:28
7 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org oddlama: Turns out your bug was hitting my other system; it just didn't have any tangible effect because my network config was the same between stages :P 20:34:18
@oddlama:matrix.orgoddlamaAh, that makes sense :D20:56:09
11 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/pull/23715406:36:56
@k900:0upti.meK900Wait so does this mean we can actually get from stage1 to stage2 without dropping the network?06:37:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.org K900: That's always been possible with flushBeforeStage2 = false 06:38:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThis just implements that in a sane way06:38:11
@k900:0upti.meK900Oh06:38:13
@k900:0upti.meK900I haven't really tried it because the only box I'd want to try it on gets confused when the network drops while it's booted06:38:41
@k900:0upti.meK900(for some reason)06:38:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org in fact the non-sane thing we did before was the implementation of flushBeforeStage2 = true, because systemd-networkd expects you to want to carry network configs over between stages 06:39:06
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * in fact the non-sane thing we did before was the implementation of flushBeforeStage2 = true, because systemd-networkd expects you to want to carry network configs over between stages and just does that by default 06:39:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.org now the real question is... do I upstream my tailscaled in initrd implementation... 06:40:30
@k900:0upti.meK900Does it need special setup?06:41:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea06:41:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhere is the tailscale state dir?06:41:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbecause if it isn't something persistent then it's useless06:41:47
@k900:0upti.meK900Oh yeah makes sense06:41:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgmy system does it by having the tailscale state dir shared between stages and stored on a disk that's TPM2 encrypted, and unlocked in initrd without user input06:42:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgletting me log in so I can enter the key for the root fs and get the system booted06:42:43
@k900:0upti.meK900I have a horrible idea now06:43:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgdo tell06:43:23
@k900:0upti.meK900You could, in theory, do OIDC with a key stored on the TPM06:44:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhat's OIDC?06:44:38
@k900:0upti.meK900OpenID Connect, which is the thing Tailscale uses for auth06:44:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso what does it mean to store a key for it on the TPM?06:46:02
@k900:0upti.meK900It's just auth06:46:10
@k900:0upti.meK900You sign a token with your private key06:46:16
@k900:0upti.meK900And send it to the server that knows your public key06:46:23

Show newer messages


Back to Room ListRoom Version: 6