!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
7 Jul 2025
@colemickens:matrix.orgcolemickens left the room.21:57:55
1 Jan 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de changed the history visibility to "world_readable" from "shared".14:58:46
2 Jan 2022
@m1cr0man:m1cr0man.comm1cr0man joined the room.01:12:09
@m1cr0man:m1cr0man.comm1cr0man👋 just here to watch + learn :) 01:13:26
@replaycoding_:matrix.orgReplayCoding joined the room.20:31:19
3 Jan 2022
@phaer:matrix.orgPaul Haerle joined the room.08:41:05
@phaer:matrix.orgPaul HaerleJust to clarify: Is this room mainly about https://github.com/NixOS/nixpkgs/pull/120015 or are there other efforts? :)08:46:44
@arianvp:matrix.orgArianThere's also https://github.com/arianvp/server-optimised-nixos which uses systemd initrd as well08:51:48
@phaer:matrix.orgPaul Haerle Arian: Oh right, i remember seeing your project before - thanks! 09:11:33
@phaer:matrix.orgPaul Haerle Arian: Are you running your initrd code in production already? I have a remote-nixos-on-zfs-root-installer laying around, but one of it's practical problems atm is that the initrd gets pretty big and thats painful to improve as the moment as https://github.com/NixOS/nixpkgs/commit/776a5e6ebfacc6831527bc6c3c1a58ef2087c819 was reverted and nixpkgs initrd still uses ./paths-from-graph.pl which seems to confuse nix-tree, store-path info, etc. 09:14:12
@arianvp:matrix.orgArianI have my own impl of makeInitrd in that repo09:48:27
@arianvp:matrix.orgArianThat uses closureInfo09:48:32
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @arianvp:matrix.org
That uses closureInfo
I'm still looking into the code, but why are you using closeInfo? Doesn't that add a lot of unused weight into stage-1?
10:29:25
@arianvp:matrix.orgArianMostly because I didn't care and it was the simplest. I haven't dabbled into optimising the initrd size yet10:40:47
@arianvp:matrix.orgArianWanted to get working initrd as simply as possible.10:41:03
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI do like the simplicity of it. No weird tooling involved, just basic tools. Currently looking at the source of mkinitcpio which seems to follow pretty similar ideas10:45:51
@colemickens:matrix.orgcolemickens joined the room.17:23:20
4 Jan 2022
@andi:kack.it@andi:kack.it The issue with the current initrd approach in nixpkgs is that it really causes unfortunate library confusions if you have two (or more) packages providing the same libraries. I've had an issue with pulling in systemd into the closure as that also pulled in systemdMinimal and then the features wouldn't be available as it always dlopen'ed the minimal library :'( 13:37:04
@andi:kack.it@andi:kack.itWe need a better approach for that initrd (and should also rip out that systemdMinimal ASAP)13:37:21
@arianvp:matrix.orgArianThis is also an argument for my approach even though it's not optimised yet. It's 'just' a nix store. So no confusion among libraries13:45:07
@colemickens:matrix.orgcolemickens
In reply to @phaer:matrix.org
Arian: Are you running your initrd code in production already? I have a remote-nixos-on-zfs-root-installer laying around, but one of it's practical problems atm is that the initrd gets pretty big and thats painful to improve as the moment as https://github.com/NixOS/nixpkgs/commit/776a5e6ebfacc6831527bc6c3c1a58ef2087c819 was reverted and nixpkgs initrd still uses ./paths-from-graph.pl which seems to confuse nix-tree, store-path info, etc.
That installer is something I was considering hacking together for netboot oracle instances. Id love to take a peek
15:56:48
@phaer:matrix.orgPaul Haerle colemickens 🏳️‍🌈: It's not really in a state to be published yet. I have some local branches, but what's there in main should work at least on hetzners hcloud and you might get an idea or two for your oracle instances from there. Be aware that the resulting initrd is currently gigantic (1.3GB uncompressed at last count) 17:11:43
@phaer:matrix.orgPaul Haerle colemickens 🏳️‍🌈: Ah, forgot the link which i just made public https://github.com/dep-sys/nixos-zfs-installer 17:12:22
@phaer:matrix.orgPaul HaerleI think it should in theory be doable to maintain a generic flake which provides nix functions and nixosModules to bundle parameterized install scripts with a somewhat minimal kernel configuration + initrd for kexec, netbooting and vms all together. Making them unattended and seed thinks such as the host name, network config, etc to the installer in a generic way seems challenging to me. Same as flexible partitioning. e.g. EFI & zfs mirroing support would be awesome17:28:23
@colemickens:matrix.orgcolemickensI think maybe this is OT and maybe I should throw up a repo even just so we can spitball ideas, but I am thinking along the same lines. In many cases, disk layout will be known ahead of time and I'm thinking a heuristic for "matching" to a selected disk layout to a booted machine, it notices the disks are not zpool members and kicks in.18:56:02
@colemickens:matrix.orgcolemickensI am also thinking this initrd could be smart enough to consume VM userdata via cloud api, libvirtd, etc for last mile provisioning.18:56:42
@colemickens:matrix.orgcolemickensWith sops-nix having support for cloud KVM, and a scheme I've found for supporting multiple user zfs keys... I think some somewhat interesting things could be built that would be highly appealing to certain types of orgs.18:57:32
@colemickens:matrix.orgcolemickens phaer: ^^ 18:57:50
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @colemickens:matrix.org
With sops-nix having support for cloud KVM, and a scheme I've found for supporting multiple user zfs keys... I think some somewhat interesting things could be built that would be highly appealing to certain types of orgs.
We don't have stage-1 support in sops-nix yet though. But it's one of my next projects apart from the stc stuff
19:13:26
5 Jan 2022
@phaer:matrix.orgPaul Haerle
In reply to @colemickens:matrix.org
I think maybe this is OT and maybe I should throw up a repo even just so we can spitball ideas, but I am thinking along the same lines. In many cases, disk layout will be known ahead of time and I'm thinking a heuristic for "matching" to a selected disk layout to a booted machine, it notices the disks are not zpool members and kicks in.
A place to collect ideas would be most welcome, I learned a lot since and would have a few ideas to improve my current playground. Also quite interested in the vm data via cloud api thing! :)
01:01:25

Show newer messages


Back to Room ListRoom Version: 6