!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
30 Jul 2022
@linus:schreibt.jetzt@linus:schreibt.jetzt ElvishJerricco: only at build time though? 11:36:23
@k900:0upti.meK900 And then wherever it's invoked we just make-initrd-ng --strip=${binutils.targetPrefix}strip 11:36:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.org K900: Minimal system should have a cross make-initrd-ng, which should have a cross-built binutils, not a cross binutils 11:36:46
@linus:schreibt.jetzt@linus:schreibt.jetzt
In reply to @elvishjerricco:matrix.org
Yea, binutils is in a minimal system
lol only since the introduction of the shutdown ramfs
11:37:07
@k900:0upti.meK900Is it time to also add clap11:37:09
@k900:0upti.meK900Since we're doing deps11:37:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @linus:schreibt.jetzt
lol only since the introduction of the shutdown ramfs
oh really?
11:37:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoof11:37:20
@linus:schreibt.jetzt@linus:schreibt.jetzt at least that's the only path through which nix-build '<nixpkgs/nixos>' --arg configuration '{ boot.isContainer = true; }' -A config.system.build.toplevel depends on a binutils on my nixpkgs version 11:37:43
@linus:schreibt.jetzt@linus:schreibt.jetzt(and containers probably shouldn't have a shutdown ramfs anyway?)11:37:55
@linus:schreibt.jetzt@linus:schreibt.jetzt
In reply to @linus:schreibt.jetzt
at least that's the only path through which nix-build '<nixpkgs/nixos>' --arg configuration '{ boot.isContainer = true; }' -A config.system.build.toplevel depends on a binutils on my nixpkgs version
likewise for { boot.loader.grub.enable = false; fileSystems."/".device = "dummy"; }
11:39:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghm. what'd'ya'know. That's unfortunate11:40:51
@linus:schreibt.jetzt@linus:schreibt.jetztoof and that's like 32MiB11:41:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.org K900: Ok, so yea, a command line argument for strip would be good. If it's not provided, do not strip 11:41:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat way the minimal closure doesn't need it?11:41:21
@k900:0upti.meK900If it's not provided, just bail?11:41:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgugh but users still need it to build their initrds11:41:36
@k900:0upti.meK900Also, why is make-initrd-ng even in the minimal closure11:41:44
@k900:0upti.meK900I feel like that's the better question11:41:49
@linus:schreibt.jetzt@linus:schreibt.jetzta shutdown ramfs isn't actually saved, right? It only ever lives in RAM? So who cares if the binaries there are a bit bigger?11:42:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.org K900: Well, two things. For one, you're going to have it on your system anyway, because you'll be building your initrds. Second, we have the shutdown ramfs now 11:42:13
@k900:0upti.meK900The shutdown ramfs shouldn't be in the minimal closure either though11:42:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit's enabled by default now11:42:42
@k900:0upti.meK900 Maybe we should disable it for isContainer = true at least 11:42:55
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea probably11:43:01
@k900:0upti.meK900But yeah I guess for shutdown ramfs we can just not strip11:43:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut I think it's important to point out that "needed to build your next initrd" is nearly the same thing as "in the minimal closure"11:43:29
@linus:schreibt.jetzt@linus:schreibt.jetztmake-initrd-ng itself is only 500K, so I don't think it's nearly as big a deal as binutils11:43:32
@k900:0upti.meK900Which will also save time11:43:36
@linus:schreibt.jetzt@linus:schreibt.jetzt
In reply to @elvishjerricco:matrix.org
But I think it's important to point out that "needed to build your next initrd" is nearly the same thing as "in the minimal closure"
Only if you're building on the same host that you're running on. Which doesn't apply to quite a large number of deployments.
11:43:55

Show newer messages


Back to Room ListRoom Version: 6