!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
21 Mar 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd using regular systemd instead increases the initrd size by more than double01:35:24
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
we're using systemdMinimal... which has a different path
That doesn't matter. If you're looking at the switch-root.c code, it compares the canonical path of the new systemd not to the path of the current systemd but rather to a constant that we set during compilation
09:31:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deThis: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix#L56410:08:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de bobvanderlinden: if you fix the one spelling thing in your PR, I'll merge it 10:16:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh. I very much misunderstood some stuff then :P Nice!10:40:37
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.debut you may be right that symlinks should work10:41:04
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI haven't checked what same_file() does exactly10:41:13
@bobvanderlinden_:matrix.orgbobvanderlinden
In reply to @janne.hess:helsinki-systems.de
bobvanderlinden: if you fix the one spelling thing in your PR, I'll merge it
Done πŸ‘ https://github.com/NixOS/nixpkgs/pull/164016
11:31:14
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deflokli was faster while I was at lunch :((12:13:43
@bobvanderlinden_:matrix.orgbobvanderlindenHaha it's merged I'm happy πŸ‘12:39:48
@flokli:matrix.orgflokliπŸ˜†13:43:09
22 Mar 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: I pushed a bunch of changes addressing several of your points. I didn't push the thing causing infinite recursion though, but it's just wrapping the existing options so why don't you try it out? 11:06:43
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI will once I clear out my conflicts with your new code :D11:07:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deOkay pennae explained why it doesn't work. We won't make it work easily and since it's a temporary measure, I created this: https://github.com/NixOS/nixpkgs/commit/2aeb4967ae36bb127e3512ba6db8050edb3bedec11:32:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.defeel free to pick or rebase into your changeset11:32:57
@arianvp:matrix.org@arianvp:matrix.org I wonder if nixos should have a similar policy as kubernetes. Put things in a v1alpha1 namespaced and once you move to v1beta1 all the v1alpha1 options are upserted (translated) to their v1beta1 equivalent with aliases 11:34:02
@arianvp:matrix.org@arianvp:matrix.orgthat way we can signal that a module is experimental; but also not break the API per se...11:34:18
@arianvp:matrix.org@arianvp:matrix.org(Unless needed of course)11:34:23
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI guess hiding the options should suffice11:34:43
@arianvp:matrix.org@arianvp:matrix.org e.g. you change. v1alpha1.initrd.mkInitrd to. v1beta1.initramfs.makeInitramfs and it gets trnslated by an alias and prints a deprecation notice or something 11:35:06
@arianvp:matrix.org@arianvp:matrix.orgmaybe an interesting RFC to write :P11:35:25
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deNot sure if the scope of the change is big enough for this to be important. I have no idea what state of the code will be in when we ship 22.05, but I don't think that it will be stable enough for like 90% of the users. 22.11 is probably the release where this will shine11:36:34
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deWhich is why I want the basics to be as complete as possible. I don't know how common that is for other people to do but if I have a very extensible and complete base, I can develop on my local machines and extend in what I need before upstreaming it to nixpkgs. It's just feels so much better working from the stable release (since most of my prod machines are on the release) than to switch to unstable (or even master) just for testing11:37:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @janne.hess:helsinki-systems.de
Okay pennae explained why it doesn't work. We won't make it work easily and since it's a temporary measure, I created this: https://github.com/NixOS/nixpkgs/commit/2aeb4967ae36bb127e3512ba6db8050edb3bedec
I wanted to cherry pick that but it doesn't appear to be on any branch
17:27:01
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de

does this work?

$ git fetch origin 2aeb4967ae36bb127e3512ba6db8050edb3bedec
From github.com:nixos/nixpkgs
 * branch                    2aeb4967ae36bb127e3512ba6db8050edb3bedec -> FETCH_HEAD
17:31:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHuh, did not know you could do that. Cool18:11:59
23 Mar 2022
@ckie:ckie.devckie (they/them) joined the room.13:11:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deStarted to make the handover between systemds more possible: https://github.com/NixOS/nixpkgs/pull/16545315:00:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHuh, yea that definitely helps20:40:21
@ckie:ckie.devckie (they/them)i never thought i'd see plural systemd22:23:20

Show newer messages


Back to Room ListRoom Version: 6