| 30 Jul 2022 |
@linus:schreibt.jetzt | ooooh that's why the shutdown ramfs service was failing. Probably. | 12:31:30 |
@linus:schreibt.jetzt | But I don't really care about that. | 12:31:35 |
@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 | but hey, I only care if it boots, for now. | 12:34:09 |
@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 | it sure boots! | 12:39:07 |
K900 | Oh wait | 12:43:02 |
K900 | Yeah we can actually do that | 12:43:05 |
K900 | I think | 12:43:16 |
K900 | Cause the actual initrd build happens in a derivation, not in the activation script | 12:43:43 |
@linus:schreibt.jetzt | exactly | 12:45:33 |
K900 | The question is, will this drag in the rest of the stdenv | 12:54:31 |
K900 | Which would be not great | 12:54:39 |
K900 | But we can maybe make our own stdenv with just binutils? | 12:54:51 |
@linus:schreibt.jetzt | I think adding binutils to nativeBuildInputs on stdenvNoCC should be enough? | 12:57:26 |
@linus:schreibt.jetzt | I'm testing that right now :) | 12:57:40 |
@elvishjerricco:matrix.org | That wouldn't set $STRIP I don't think, which is how we get the right cross name in the environment variable | 13:03:00 |
@linus:schreibt.jetzt | oh yeah true | 13:03:37 |
@linus:schreibt.jetzt | so targetPrefix after all I guess | 13:03:44 |
K900 | But we can set it in an environment variable I guess | 13:04:32 |
@linus:schreibt.jetzt | yep | 13:04:34 |
K900 | To avoid having to redo args parsing | 13:04:40 |
@linus:schreibt.jetzt | STRIP = lib.optionalString strip "${stdenv.targetPrefix}strip"; | 13:04:41 |
@linus:schreibt.jetzt | LOL I haven't been testing ANY of this correctly because I had boot.initrd.systemd.enable commented out 🙃 | 13:09:04 |
@linus:schreibt.jetzt | so uh, I think this is the first time I've actually booted it successfully with a systemd initramfs | 13:16:38 |
@linus:schreibt.jetzt | I have to say I'm quite underwhelmed by the performance | 13:16:45 |
| @sandro:supersandro.de changed their display name from Sandro to Sandro 🐧. | 13:17:05 |
@linus:schreibt.jetzt | Startup finished in 3.658s (kernel) + 22.254s (initrd) + 35.780s (userspace) = 1min 1.693s | 13:17:18 |
@elvishjerricco:matrix.org | How long does the old initrd take? | 13:17:41 |
@linus:schreibt.jetzt | about to check :) | 13:17:51 |