!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
30 Jul 2022
@linus:schreibt.jetzt@linus:schreibt.jetztooooh that's why the shutdown ramfs service was failing. Probably.12:31:30
@linus:schreibt.jetzt@linus:schreibt.jetztBut I don't really care about that.12:31:35
@linus:schreibt.jetzt@linus:schreibt.jetzt
copying path '/nix/store/1cdzcvzjjr0hv9djg4snkbvr6js29wc9-llvm-14.0.6-lib' to 'ssh://root@cube-muc.lan'

yeaaaaah that looks wrong lol

12:33:58
@linus:schreibt.jetzt@linus:schreibt.jetztbut hey, I only care if it boots, for now.12:34:09
@linus:schreibt.jetzt@linus:schreibt.jetzt How do we feel about using the environment variable STRIP within make-initrd-ng? That way it should work automagically in a derivation if it's available (runCommand vs runCommandCC would then be the difference that the option ElvishJerricco mentioned makes), and is also easy to implement in the shutdown ramfs if you really want to. 12:37:34
@linus:schreibt.jetzt@linus:schreibt.jetztit sure boots!12:39:07
@k900:0upti.meK900Oh wait12:43:02
@k900:0upti.meK900Yeah we can actually do that12:43:05
@k900:0upti.meK900I think12:43:16
@k900:0upti.meK900Cause the actual initrd build happens in a derivation, not in the activation script12:43:43
@linus:schreibt.jetzt@linus:schreibt.jetztexactly12:45:33
@k900:0upti.meK900The question is, will this drag in the rest of the stdenv12:54:31
@k900:0upti.meK900Which would be not great 12:54:39
@k900:0upti.meK900But we can maybe make our own stdenv with just binutils? 12:54:51
@linus:schreibt.jetzt@linus:schreibt.jetztI think adding binutils to nativeBuildInputs on stdenvNoCC should be enough?12:57:26
@linus:schreibt.jetzt@linus:schreibt.jetztI'm testing that right now :)12:57:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThat wouldn't set $STRIP I don't think, which is how we get the right cross name in the environment variable13:03:00
@linus:schreibt.jetzt@linus:schreibt.jetztoh yeah true13:03:37
@linus:schreibt.jetzt@linus:schreibt.jetztso targetPrefix after all I guess13:03:44
@k900:0upti.meK900But we can set it in an environment variable I guess 13:04:32
@linus:schreibt.jetzt@linus:schreibt.jetztyep13:04:34
@k900:0upti.meK900To avoid having to redo args parsing13:04:40
@linus:schreibt.jetzt@linus:schreibt.jetzt STRIP = lib.optionalString strip "${stdenv.targetPrefix}strip"; 13:04:41
@linus:schreibt.jetzt@linus:schreibt.jetztLOL I haven't been testing ANY of this correctly because I had boot.initrd.systemd.enable commented out 🙃13:09:04
@linus:schreibt.jetzt@linus:schreibt.jetztso uh, I think this is the first time I've actually booted it successfully with a systemd initramfs13:16:38
@linus:schreibt.jetzt@linus:schreibt.jetztI have to say I'm quite underwhelmed by the performance13:16:45
@sandro:supersandro.de@sandro:supersandro.de changed their display name from Sandro to Sandro 🐧.13:17:05
@linus:schreibt.jetzt@linus:schreibt.jetzt Startup finished in 3.658s (kernel) + 22.254s (initrd) + 35.780s (userspace) = 1min 1.693s 13:17:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHow long does the old initrd take?13:17:41
@linus:schreibt.jetzt@linus:schreibt.jetztabout to check :)13:17:51

Show newer messages


Back to Room ListRoom Version: 6