!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
5 Jun 2023
@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
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit'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.org@elvishjerricco:matrix.orgoh18: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.org@elvishjerricco:matrix.orgyea that all seems correct18:20:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.org 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
@oddlama:matrix.orgoddlama
18:22:00
@oddlama:matrix.orgoddlama * ○ systemd-networkd.service - Network Configuration Loaded: loaded (/etc/systemd/system/systemd-networkd.service; enabled; preset: enabled) Drop-In: /nix/store/4cx8q44c60saw5jz7qrda31h22qgbviy-system-units/systemd-networkd.service.d └─overrides.conf Active: inactive (dead) since Mon 2023-06-05 19:38:12 CEST; 16min ago Duration: 43.928s TriggeredBy: ● systemd-networkd.socket Docs: man:systemd-networkd.service(8) Main PID: 181 (code=exited, status=0/SUCCESS) Status: "Shutting down..." IP: 0B in, 0B out CPU: 47ms Jun 05 19:37:28 localhost systemd[1]: Starting Network Configuration... Jun 05 19:37:28 localhost systemd-networkd[181]: lo: Link UP Jun 05 19:37:28 localhost systemd-networkd[181]: lo: Gained carrier Jun 05 19:37:28 localhost systemd-networkd[181]: Enumeration completed Jun 05 19:37:28 localhost systemd[1]: Started Network Configuration. Jun 05 19:37:28 localhost systemd-networkd[181]: wan: Configuring with /etc/systemd/network/10-wan.network. Jun 05 19:37:28 localhost systemd-networkd[181]: wan: Link UP Jun 05 19:37:29 localhost systemd-networkd[181]: wan: Gained carrier Jun 05 19:37:30 localhost systemd-networkd[181]: wan: Gained IPv6LL18:22:04
@oddlama:matrix.orgoddlama *
○ systemd-networkd.service - Network Configuration
     Loaded: loaded (/etc/systemd/system/systemd-networkd.service; enabled; preset: enabled)
    Drop-In: /nix/store/4cx8q44c60saw5jz7qrda31h22qgbviy-system-units/systemd-networkd.service.d
             └─overrides.conf
     Active: inactive (dead) since Mon 2023-06-05 19:38:12 CEST; 16min ago
   Duration: 43.928s
TriggeredBy: ● systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
   Main PID: 181 (code=exited, status=0/SUCCESS)
     Status: "Shutting down..."
         IP: 0B in, 0B out
        CPU: 47ms

Jun 05 19:37:28 localhost systemd\[1\]: Starting Network Configuration...
Jun 05 19:37:28 localhost systemd-networkd\[181\]: lo: Link UP
Jun 05 19:37:28 localhost systemd-networkd\[181\]: lo: Gained carrier
Jun 05 19:37:28 localhost systemd-networkd\[181\]: Enumeration completed
Jun 05 19:37:28 localhost systemd\[1\]: Started Network Configuration.
Jun 05 19:37:28 localhost systemd-networkd\[181\]: wan: Configuring with /etc/systemd/network/10-wan.network.
Jun 05 19:37:28 localhost systemd-networkd\[181\]: wan: Link UP
Jun 05 19:37:29 localhost systemd-networkd\[181\]: wan: Gained carrier
Jun 05 19:37:30 localhost systemd-networkd\[181\]: wan: Gained IPv6LL
18:22:32
@oddlama:matrix.orgoddlamaI didn't have these problems some a week ago, so maybe it's something else I enabled that interferes, or this is non-deterministic? I have no idea where to start investigating18:27:15
@oddlama:matrix.orgoddlama * I didn't have these problems week ago, so maybe it's something else I enabled that interferes, or this is non-deterministic? I have no idea where to start investigating18:27:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea I'm not really sure where to look next18:27:36
@oddlama:matrix.orgoddlamaLet me restart with the same configuration to see whether it happens every tiem18:27:57

Show newer messages


Back to Room ListRoom Version: 6