!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
19 Mar 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOof. Last time I was making progress on this stuff I wasn't happy that it was up to 20M09:42:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOld is like 10M09:42:25
@bobvanderlinden_:matrix.orgbobvanderlinden I thought first get everything working with the reusable initramfs.systemd.services. See what else needs to go in contents (hopefully only the /etc and /bin symlinks). Once that works, see whether the find-dependencies can be optimized more without missing any dependencies 09:42:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI think size takes priority over find-dependencies finding everything09:43:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit's not such a big deal if we have to add some manual paths09:43:31
@bobvanderlinden_:matrix.orgbobvanderlindenAh! I compared with the original initrd, it seemed those were similar.09:43:42
@bobvanderlinden_:matrix.orgbobvanderlindenagreed 👍️09:43:51
@bobvanderlinden_:matrix.orgbobvanderlindenit's fine to remove the dependency finding in arbitrary files09:44:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We should definitely be getting rid of all the stuff like extraUnits and stuff that I did in favor of reusing the systemd modules though. 09:46:17
@bobvanderlinden_:matrix.orgbobvanderlinden it get a bit messy anyway when we want to support boot.initrd.extraUtilsCommands 09:46:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We do not want to support stuff like boot.initrd.*Commands I'm pretty sure 09:46:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThat's going to be a road that leads only to madness09:46:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgGiven that this should be an opt-in optional initrd, it should be clean slate09:46:56
@bobvanderlinden_:matrix.orgbobvanderlindenI think it eases the migration from initrd to initramfs.systemd. Helps keep the PR smallish and easier to merge09:47:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWell09:48:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIt should come in stages.09:48:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOne PR that just adds bare bones functionality09:48:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd one PR after another restoring old features09:48:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThe *Commands things are really really antithetical to the systemd approach in the first place09:48:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd it's just going to make things harder anyway09:48:49
@bobvanderlinden_:matrix.orgbobvanderlinden

Given that this should be an opt-in optional initrd, it should be clean slate
Ah like that. Merge a clean slate and start adding initramfs.systemd configs to modules that currently use extraUtilsCommands?

09:48:52
@bobvanderlinden_:matrix.orgbobvanderlinden *

Given that this should be an opt-in optional initrd, it should be clean slate

Ah like that. Merge a clean slate and start adding initramfs.systemd configs to modules that currently use extraUtilsCommands?

09:49:04
@bobvanderlinden_:matrix.orgbobvanderlindenindeed, alright, that also sounds like a good idea09:49:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.org It shouldn't be too bad either; initrd doesn't really support that much right now 09:49:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThe excessive number of LUKS features will probably be the hardest part :P09:49:51
@bobvanderlinden_:matrix.orgbobvanderlindenat some point deprecate everything from boot.initrd09:49:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea that's the hope09:49:58
@bobvanderlinden_:matrix.orgbobvanderlinden

The excessive number of LUKS features will probably be the hardest part :P

haha indeed xD I was hoping there would be existing solutions for things like LUKS based on systemd. Haven't looked into this yet.

09:51:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @bobvanderlinden_:matrix.org
at some point deprecate everything from boot.initrd
Er, well, I guess the existing boot.initrd options will remain in place; we'll just implement them with systemd, with the exception of the *Commands ones, which would be deprecated along with the old initrd and eventually removed
09:52:07
@bobvanderlinden_:matrix.orgbobvanderlindenyes, might be good to document this plan/idea/goal in the PR. There were other people also working on initramfs+systemd, keep everyone focused on the same goal might help09:53:39

Show newer messages


Back to Room ListRoom Version: 6