!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
5 Jun 2023
@elvishjerricco:matrix.orgElvishJerriccohuh, how am I only just now realizing I never enabled systemd initrd on my two rpi cm4s....12:27:58
@elvishjerricco:matrix.orgElvishJerriccoMaybe 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.orgElvishJerriccois 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.orgElvishJerriccoah, 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.orgElvishJerriccoI would not expect that to be the case18:15:21
@elvishjerricco:matrix.orgElvishJerricco Well, with systemd initrd, we changed the default of flushBeforeStage2 to false 18:15:50
@elvishjerricco:matrix.orgElvishJerriccoso 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.orgElvishJerricco yea but those are additional things, not differing things, right? 18:16:58
@oddlama:matrix.orgoddlamaYes additional.18:17:05
@elvishjerricco:matrix.orgElvishJerriccoSo I would have expected that to be fine18:17:05
@elvishjerricco:matrix.orgElvishJerricco 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
@elvishjerricco:matrix.orgElvishJerriccoit's really weird for networkd to just shut down like that...18:18:40
@oddlama:matrix.orgoddlamathe shutdown in the first line is in stage1, rest is stage218:18:55
@elvishjerricco:matrix.orgElvishJerriccooh18:19:00
@oddlama:matrix.orgoddlama

Context for first line:

Jun 05 19:38:10 sentinel systemd[1]: Stopped SSH Daemon.
Jun 05 19:38:10 sentinel systemd[1]: dbus.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped D-Bus System Message Bus.
Jun 05 19:38:10 sentinel systemd[1]: systemd-ask-password-console.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Dispatch Password Requests to Console.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Basic System.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Network.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Preparation for Network.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Path Units.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Slice Units.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Socket Units.
Jun 05 19:38:10 sentinel systemd[1]: dbus.socket: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Closed D-Bus System Message Bus Socket.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target System Initialization.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Local Encrypted Volumes.
Jun 05 19:38:10 sentinel systemd[1]: systemd-ask-password-console.path: Deactivated successfully.
...skipping...
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Basic System.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Network.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Preparation for Network.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Path Units.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Slice Units.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Socket Units.
Jun 05 19:38:10 sentinel systemd[1]: dbus.socket: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Closed D-Bus System Message Bus Socket.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target System Initialization.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Local Encrypted Volumes.
Jun 05 19:38:10 sentinel systemd[1]: systemd-ask-password-console.path: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Swaps.
Jun 05 19:38:10 sentinel systemd[1]: systemd-networkd.socket: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Closed Network Service Netlink Socket.
Jun 05 19:38:10 sentinel systemd[1]: initrd-nixos-copy-secrets.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Copy secrets into place.
Jun 05 19:38:10 sentinel systemd[1]: systemd-network-generator.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Generate network units from Kernel command line.
Jun 05 19:38:10 sentinel systemd[1]: systemd-sysctl.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Apply Kernel Variables.
Jun 05 19:38:10 sentinel systemd[1]: systemd-modules-load.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Load Kernel Modules.
Jun 05 19:38:10 sentinel systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Create Static Device Nodes in /dev.
Jun 05 19:38:10 sentinel systemd[1]: kmod-static-nodes.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Create List of Static Device Nodes.
Jun 05 19:38:10 sentinel systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Create Volatile Files and Directories.
Jun 05 19:38:10 sentinel systemd[1]: Stopped target Local File Systems.
Jun 05 19:38:10 sentinel systemd[1]: systemd-udev-trigger.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Stopped Coldplug All udev Devices.
Jun 05 19:38:10 sentinel systemd[1]: run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: run-credentials-systemd\x2dsysctl.service.mount: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: initrd-cleanup.service: Deactivated successfully.
Jun 05 19:38:10 sentinel systemd[1]: Finished Cleaning Up and Shutting Down Daemons.
Jun 05 19:38:10 sentinel systemd[1]: Reached target Switch Root.
Jun 05 19:38:10 sentinel systemd[1]: Starting Switch Root...
Jun 05 19:38:10 sentinel systemd[1]: Switching root.
18:19:43
@elvishjerricco:matrix.orgElvishJerriccoyea that all seems correct18:20:56
@elvishjerricco:matrix.orgElvishJerricco in stage 2, what does systemctl status systemd-networkd.service look like? 18:21:24
@oddlama:matrix.orgoddlamaI ran that before I restarted it, this was the output:18:21:59

Show newer messages


Back to Room ListRoom Version: 6