!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
12 Apr 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I had the qemu-vm module configured to port forward the guest's port 22 to the hosts 2222, so I just did nc -l 22 on the guest and nc localhost 2222 on the host, and they're communicating without issue 12:20:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * I had the qemu-vm module configured to port forward the guest's port 22 to the host's 2222, so I just did nc -l 22 on the guest and nc localhost 2222 on the host, and they're communicating without issue 12:20:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.org So I guess SSH would probably work? 12:21:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut yea I'm going to have to get rid of some of these default systemd orderings12:21:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWhat happens if I....12:23:55
* @elvishjerricco:matrix.org@elvishjerricco:matrix.org eyes DefaultDependencies=no 12:24:01
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de invited @lassulus:nixos.devlassulus.17:32:51
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de invited @dennis:stengele.ems.hostDennis.17:33:10
@arianvp:matrix.org@arianvp:matrix.orgYou want to start networkd earlier?17:33:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @arianvp:matrix.org
You want to start networkd earlier?
Makes sense for iscsi and friends
17:33:43
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deAh and for unlock via ssh of course 17:33:48
@lassulus:nixos.devlassulus joined the room.17:33:49
@arianvp:matrix.org@arianvp:matrix.orgnetworkd alreayd starts quite early17:34:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea I think unlocking disks via ssh is the most common use I've heard of people using networking in initrd for17:34:48
@arianvp:matrix.org@arianvp:matrix.orgiscsi and friends should be pulled in by remote-fs.target which runs after networkd17:34:54
@arianvp:matrix.org@arianvp:matrix.orgif not there's something wrong with your fstab17:35:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI think it has default dependencies so local-fs has to be reached first17:35:10
@arianvp:matrix.org@arianvp:matrix.orgnetworkd has no Defaultdependencies17:35:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh? I must've missed that17:35:31
@arianvp:matrix.org@arianvp:matrix.org
DefaultDependencies=no
# systemd-udevd.service can be dropped once tuntap is moved to netlink
After=systemd-networkd.socket systemd-udevd.service network-pre.target systemd-sysusers.service systemd-sysctl.service
Before=network.target multi-user.target shutdown.targe
17:35:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgEither way, it doesn't seem to be started before my disk unlock prompt17:36:03
@arianvp:matrix.org@arianvp:matrix.orgif your disk does not mark that it needs network that makes sense17:36:23
@arianvp:matrix.org@arianvp:matrix.orghttps://www.freedesktop.org/software/systemd/man/bootup.html see the part about remote-fs.target17:37:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut if it doesn't have default dependencies it shouldn't have any reason to wait for the disk17:37:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(On mobile right now; can check better in a minute)17:37:41
@arianvp:matrix.org@arianvp:matrix.orgbut it pulls in systemd-sysusers.target which pulls in Wants=local-fs-pre.target17:39:04
@arianvp:matrix.org@arianvp:matrix.organd a local-fs.target17:39:20
@arianvp:matrix.org@arianvp:matrix.orgBefore=local-fs.target*17:39:23
@arianvp:matrix.org@arianvp:matrix.orgso it waits for the rootfs to be mounted so it can create the systemd-networkd user?17:39:41
@arianvp:matrix.org@arianvp:matrix.org(makes sense in my head)17:39:55

There are no newer messages yet.


Back to Room ListRoom Version: 6