!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
19 Feb 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah that's a good point15:39:26
@lily:lily.flowers@lily:lily.flowersSpeaking of, I should probably make that ISO boot issue I didn't do yesterday that I was supposed to15:41:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Lily Foster: I think I have an idea for the /sysroot prefix problem with bind mounts / overlayfs / etc.. 16:17:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.org NixOS has a fileSystems.<name>.depends option 16:18:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We can automatically add the proper depends stuff for bind mounts and add the prefix. 16:18:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.orger16:18:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgto put that more clearly,16:18:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.org we can add the /sysroot prefix to whatever we find in depends 16:19:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org because currently depends literally doesn't work with systemd 16:19:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and then we just have to put the proper depends for bind mounts, and if users want stuff like overlayfs to be fixed they just put the necessary depends in there 16:19:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and we implement it in terms of the x-systemd.requires-mounts-for= FS option 16:20:05
@lily:lily.flowers@lily:lily.flowersThat actually sounds like a pretty good idea16:23:31
@lily:lily.flowers@lily:lily.flowersI like that16:23:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org issue about the depends thing: https://github.com/NixOS/nixpkgs/issues/217179 16:25:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I think I found a way to do the flushBeforeStage2 thing for the networkd PR, but networkctl down is neither failing nor taking interfaces down... am confused 22:29:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit requires bringing dbus into initrd because that's how networkctl interacts with networkd22:31:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd that was annoying in its own right22:31:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and then it just... almost worked 22:31:27
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
and then it just... almost worked
Anything interesting in logs?
22:34:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot that I can see22:34:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthough I haven't tried with systemd debug log level yet22:35:01
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
it requires bringing dbus into initrd because that's how networkctl interacts with networkd
(also does this work with services.dbus.implementation = "broker"?)
22:35:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh my initrd implementation is far too dumb to care for that option lol22:35:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * oh my initrd dbus implementation is far too dumb to care for that option lol22:35:27
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
though I haven't tried with systemd debug log level yet
Yeah prob try that. Looking at networkctl code I don't see anything obvious unless networkd is just ignoring dbus commands totally or something
22:35:31
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
oh my initrd dbus implementation is far too dumb to care for that option lol
I figured so, just wanted to make sure it wouldn't blow up with it :)
22:35:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea next thing is too look at the logs22:36:08
@lily:lily.flowers@lily:lily.flowersIf you want to push to a public branch, I might have time to tinker with it too. I'm assuming you're doing this in a nixosTest22:36:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.org kind of 22:36:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I just added a sleep 5 && networkctl status command to the end of a nixos test and have been observing that output :p 22:37:22

Show newer messages


Back to Room ListRoom Version: 6