pbb_ has joined #nixos-systemd
pbb_ has quit [Client Quit]
<flokli> anyone up for a bisect on what introduced this?
<Mic92> flokli: does it use c++ in any form?
<Mic92> And why is this dependency not allowed?
<{^_^}> #95163 (by flokli, 18 seconds ago, open): initrd currently doesn't build, blocking channels
<Mic92> flokli: I can see that it is at the very end of the elf header
<Mic92> mhm actually no the end
<flokli> Yeah
<flokli> Not sure what it's doing there
<Mic92> flokli dynstr is usually used by the dynamic linker to encode symbols. But I don't see how this string is used.
<Mic92> I don't see this string when I compile systemd from source
<flokli> Mic92: mhh?
<flokli> At least the bisect showed https://github.com/NixOS/nixpkgs/commit/d8ac41f86394365f8319d8b37fd25e6a7ba7d904 as a possible culprit
<Mic92> I can see where the bug is coming form
<Mic92> I can also see a lot of XXXX in the binary
<flokli> Yes
<flokli> And the /nix/ is cut off as well
<flokli> Can't we just use patchelf there?
<Mic92> flokli: you can removeReferencesTo here
<Mic92> But I am not sure what the bug is about.
<flokli> the bug is about initrd assembly failing since the meson bump
<Mic92> flokli: the length of rpath is not calculated correctly I thin
<Mic92> flokli: so the hostfix could be even sed
<Mic92> flokli: Is there actually a reason why lvm/dmsetup are included in initrd by default?
<Mic92> I don't think I use any of them
<ajs124> Mic92: hasn't it always been like that? Iirc our initrd is kind of suboptimal when it comes to that kind of stuff anyways, because it's hard to include arbitraty "phases" optionally, right?
<Mic92> ajs124: is it tough? I see that some programs are included optionally
<ajs124> I got that impression from reading e.g. #46541, but it's been a while, so I might be misremembering.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/46541 (by YorikSar, 1 year ago, open): nixos/initrd: Add thin-provisioning-tools binaries
<flokli> look at ac8a2ae57700e65e11396027993aab17b7187b51
<Mic92> ajs124: It's funny that it was 2018-me asking the same question
<flokli> That PR is somewhat related - I wonder if we should only provide lvm and mdadm in initrd if it's enabled in the nixos configuration (which should happen via nixos-generate-config)
<flokli> and provide some release notes of course
<ajs124> lol. Yeah, the impression I'm always getting is that the initrd does too much for some people and too little for others. Maybe even the same people, just for different environments.