5 Jun 2023 |
ElvishJerricco | huh, how am I only just now realizing I never enabled systemd initrd on my two rpi cm4s.... | 12:27:58 |
ElvishJerricco | Maybe I tried it, experienced this, disabled it, and forgot about it :P | 12:28:13 |
@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 | 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 | is iscsi going to be particularly difficult? I don't know what all is involved in that one | 12:30:09 |
@janne.hess:helsinki-systems.de | I don't think so, the main blocker was networking support | 12:30:57 |
ElvishJerricco | ah, cool | 12:31:15 |
@janne.hess:helsinki-systems.de | It's pretty much this: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/iscsi/root-initiator.nix | 12:31:15 |
@nikstur:matrix.org | In reply to @janne.hess:helsinki-systems.de solution is to disable stripping Thanks! It worked | 12:56:52 |
oddlama | Is there any kind of conflict between systemd-networkd in initrd and on the main system? | 18:14:45 |
oddlama |
My systemd-networkd isn't starting in stage2 seemingly because it was deactivated in stage1 (or I'm misinterpreting) | 18:14:54 |
ElvishJerricco | I would not expect that to be the case | 18:15:21 |
ElvishJerricco | Well, with systemd initrd, we changed the default of flushBeforeStage2 to false | 18:15:50 |
ElvishJerricco | so if the network config is different between stage 1 and 2, that might be a problem | 18:16:05 |
oddlama | Yeah it is | 18:16:12 |
oddlama | In initrd I only have absolute minimum required connectivity | 18:16:24 |
oddlama | In the real system I have a lot of macvtaps and wireguard interfaces | 18:16:37 |
ElvishJerricco | yea but those are additional things, not differing things, right? | 18:16:58 |
oddlama | Yes additional. | 18:17:05 |
ElvishJerricco | So I would have expected that to be fine | 18:17:05 |
ElvishJerricco | If that expectation is wrong, we should test for it and probably change the default for flushBeforeStage2 back to true | 18:17:47 |
oddlama | 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 | and systemd-network was indeed not active, so I started it manually and everything was up again | 18:18:22 |
ElvishJerricco | it's really weird for networkd to just shut down like that... | 18:18:40 |
oddlama | the shutdown in the first line is in stage1, rest is stage2 | 18:18:55 |
ElvishJerricco | oh | 18:19:00 |
oddlama | 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 | yea that all seems correct | 18:20:56 |
ElvishJerricco | in stage 2, what does systemctl status systemd-networkd.service look like? | 18:21:24 |
oddlama | I ran that before I restarted it, this was the output: | 18:21:59 |