!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

883 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` for interface and routing setup, use systemd-networkd, ifstate or NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org255 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Jul 2025
@k900:0upti.meK900Than it is to coerce ifstate into running in initrd07:29:53
@elvishjerricco:matrix.orgElvishJerriccoI'm assuming python is too dynamic-brained to be able to statically determine which python files are needed by a given program?07:36:28
@elvishjerricco:matrix.orgElvishJerriccowell, I guess that's only a fraction of the problem, since you still need to include native libs and the interpreter and all that. Yea this sounds like pain07:37:40
@k900:0upti.meK900Yeah07:37:57
@marcel:envs.net@marcel:envs.net
In reply to @elvishjerricco:matrix.org
yea, indeed, copy_bin_and_libs ${getExe ifstate} on your branch results in a non-functional nuke-refs'd program, and using the program outside of extra-utils instead pulls in the whole closure for a whopping 75M of initrd size.
Is there a reason why copy_bin_and_libs should not be working with systemd stage one?
07:39:52
@elvishjerricco:matrix.orgElvishJerricco copy_bin_and_libs is a extra-utils thing, which is not how systemd initrd defines its binaries. 07:40:42
@elvishjerricco:matrix.orgElvishJerriccoSee: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/kernel/make-initrd-ng/README.md07:40:44
@elvishjerricco:matrix.orgElvishJerriccoheh, that readme needs an update.07:43:08
@elvishjerricco:matrix.orgElvishJerriccoit describes taking pairs of paths as input but nowadays it's json07:43:19
@elvishjerricco:matrix.orgElvishJerricco it also doesn't cover a couple of the dependencies it chases, namely wrapped executables and the .dlopen ELF section things that systemd uses now. 07:44:13

Show newer messages


Back to Room ListRoom Version: 6