!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/5127 Servers

Load older messages


SenderMessageTime
30 Jul 2022
@k900:0upti.meK900Or rather it will have the wrong cross binutils11:35:47
@k900:0upti.meK900
In reply to @elvishjerricco:matrix.org
K900: The wrapper is made in the postInstall of the rust derivation :P But I see your point
Well yeah we'd have to split it out
11:35:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Linux Hackerman: The right strip command is ${binutils.targetPrefix}strip 11:35:55
@k900:0upti.meK900Actually wait11:36:11
@k900:0upti.meK900Why not just take it as a command line arg11:36:20
@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

Show newer messages


Back to Room ListRoom Version: 6