| 6 Mar 2025 |
Arian | https://www.freedesktop.org/software/systemd/man/latest/systemd.html#Readiness%20Protocol | 18:37:21 |
@elvishjerricco:matrix.org | I didn't realize PID1 was conscientious about being hosted as a container or vm | 18:38:35 |
Alyssa Ross | IIRC it basically has to be | 19:12:21 |
Alyssa Ross | Even s6-linux-init is | 19:12:30 |
Arian | It isn't really. It just checks if there is a socket passed in through a credential | 19:20:19 |
@elvishjerricco:matrix.org | how do you pass a socket in through a credential? | 19:23:01 |
Arian | https://www.freedesktop.org/software/systemd/man/latest/systemd.html#vmm.notify_socket | 19:23:49 |
Arian | It's the socket address. Not socket. Sorry | 19:24:54 |
Arian | So for VMs it's the vsock address. For containers it's a Unix domain socket path | 19:25:07 |
@elvishjerricco:matrix.org | I guess I don't understand vsock things :P | 19:29:15 |
Arian | There's a virtio driver that exposes vsocks to the guest | 19:32:35 |
@elvishjerricco:matrix.org | oh so it can't start until the module is loaded | 19:33:16 |
raitobezarius | speaking of vsock things | 19:33:26 |
Arian | https://man7.org/linux/man-pages/man7/vsock.7.html | 19:33:28 |
raitobezarius | it would be nice to add the code for ssh generators in systemd | 19:33:34 |
raitobezarius | i have it in my personal nixpkgs | 19:33:39 |
raitobezarius | i use vsock ssh for all my vms | 19:33:42 |
Arian | There's a pr | 19:33:45 |
@elvishjerricco:matrix.org | there's a PR | 19:33:46 |
raitobezarius | ah cool | 19:33:47 |
@elvishjerricco:matrix.org | I just haven't reviewed it yet | 19:33:53 |
@elvishjerricco:matrix.org | (it's high on my todo list but I have few spoons) | 19:34:09 |
raitobezarius | (resting is awesome) | 19:34:17 |
Arian | I think vsock is built-in and not a module? | 19:34:51 |
Arian | So it doesn't need loading | 19:34:56 |
@elvishjerricco:matrix.org | oh | 19:34:59 |
Arian | Not 100% sure. Raito will know | 19:35:13 |
@elvishjerricco:matrix.org | well I was about to say something that you've just invalidated :P | 19:35:15 |
@elvishjerricco:matrix.org | I was going to say that needing to load the module probably breaks initrd testing | 19:35:47 |
@elvishjerricco:matrix.org | which admittedly is kinda rare | 19:36:00 |