!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

You have reached the beginning of time (for this room).


SenderMessageTime
5 Jun 2023
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @nikstur:matrix.org
I just came across something curious: I'm currently building a custom kernel for an Nvidia BlueField2 and when I try to boot it with the systemd initrd, it fails to load the overlay module, giving me this error: overlay: module has no symbols (stripped?). When I use the legacy initrd, it is able to load the module. Could this happen because of the way makeInitrdNG works?
we have the same issue on rpi4
12:26:30
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.desolution is to disable stripping12:26:35
@nikstur:matrix.org@nikstur:matrix.orgIs there an issue for that already?12:26:45
@nikstur:matrix.org@nikstur:matrix.orgI guess its an AARCH64 thing then12:26:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de boot.initrd.systemd.strip 12:26:55
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI don't think so, we thought it was a random oddity with our kernel12:27:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghuh, how am I only just now realizing I never enabled systemd initrd on my two rpi cm4s....12:27:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMaybe I tried it, experienced this, disabled it, and forgot about it :P12:28:13
@nikstur:matrix.org@nikstur:matrix.org
In reply to @janne.hess:helsinki-systems.de
I don't think so, we thought it was a random oddity with our kernel
Mhmm, might be worth looking into... another time
12:28:56
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @nikstur:matrix.org
Mhmm, might be worth looking into... another time
Once iscsi support is there i can also try it on our mac
12:29:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgis iscsi going to be particularly difficult? I don't know what all is involved in that one12:30:09
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI don't think so, the main blocker was networking support12:30:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah, cool12:31:15
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deIt's pretty much this: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/iscsi/root-initiator.nix12:31:15
@nikstur:matrix.org@nikstur:matrix.org
In reply to @janne.hess:helsinki-systems.de
solution is to disable stripping
Thanks! It worked
12:56:52
@oddlama:matrix.orgoddlamaIs there any kind of conflict between systemd-networkd in initrd and on the main system?18:14:45
@oddlama:matrix.orgoddlama My systemd-networkd isn't starting in stage2 seemingly because it was deactivated in stage1 (or I'm misinterpreting)18:14:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI would not expect that to be the case18:15:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Well, with systemd initrd, we changed the default of flushBeforeStage2 to false 18:15:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso if the network config is different between stage 1 and 2, that might be a problem18:16:05
@oddlama:matrix.orgoddlamaYeah it is18:16:12
@oddlama:matrix.orgoddlamaIn initrd I only have absolute minimum required connectivity18:16:24
@oddlama:matrix.orgoddlamaIn the real system I have a lot of macvtaps and wireguard interfaces18:16:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.org yea but those are additional things, not differing things, right? 18:16:58
@oddlama:matrix.orgoddlamaYes additional.18:17:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo I would have expected that to be fine18:17:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.org If that expectation is wrong, we should test for it and probably change the default for flushBeforeStage2 back to true 18:17:47
@oddlama:matrix.orgoddlama

The only related logs I'm getting are these:

Jun 05 19:38:12 sentinel systemd[1]: systemd-networkd.service: Deactivated successfully.
[...]
Jun 05 19:38:12 sentinel systemd[1]: systemd-networkd-wait-online.service: Bound to unit systemd-networkd.service, but unit isn't active.
Jun 05 19:38:12 sentinel systemd[1]: Dependency failed for Wait for Network to be Configured.
Jun 05 19:38:12 sentinel systemd[1]: systemd-networkd-wait-online.service: Job systemd-networkd-wait-online.service/start failed with result 'dependency'.
[...]
Jun 05 19:38:14 sentinel systemd[1]: network-local-commands.service: Bound to unit systemd-networkd.service, but unit isn't active.
Jun 05 19:38:14 sentinel systemd[1]: Dependency failed for Extra networking commands..
Jun 05 19:38:14 sentinel systemd[1]: network-local-commands.service: Job network-local-commands.service/start failed with result 'dependency'.
18:17:56
@oddlama:matrix.orgoddlamaand systemd-network was indeed not active, so I started it manually and everything was up again18:18:22

Show newer messages


Back to Room ListRoom Version: 6