!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
22 Oct 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de ElvishJerricco: ma27 told me about this today: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1.nix#L153 17:43:47
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dedo we need to adapt that?17:43:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI don't think so17:45:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwe don't nuke the rpath17:45:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd glibc is in its original path in the initrd17:45:29
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deah that might work around that, yeah17:45:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.org as long as something is causing libpthread to be pulled in 17:46:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.defeels a bit unreliable :D17:46:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea maybe we can add that to storePaths as an assurance17:46:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @elvishjerricco:matrix.org

https://github.com/systemd/systemd/releases/tag/v252-rc2

    * Various units are now correctly ordered against
      initrd-switch-root.target where previously a conflict without
      ordering was configured. A stop job for those units would be queued,
      but without the ordering it could be executed only after
      initrd-switch-root.service, leading to units not being restarted in
      the host system as expected.

I wish they linked the PR that did this. I'd like to see what exactly changed

Ah, think I found it: https://github.com/systemd/systemd/pull/24670
17:48:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deseems related but is unmerged: https://github.com/systemd/systemd/pull/2468017:51:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI really wish systemd PRs contained some kind of explanation for wtf it's doing. They seem to almost always have zero context17:52:02
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dewell I see the same thing in nixpkgs more often than I would hope ;)17:53:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/systemd/systemd/pull/24670/files#r972921587 This is... useful, if strange, information.17:54:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Apparently when one thing would be stopped at the same time as the other would be started, the only way to influence the ordering of those things is to have any ordering between them, which always means the stop happens first 17:55:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Looks like they missed at least a couple units; like systemd-networkd.service. But then again I don't think anyone actually expects people to use networkd in initrd yet :P 17:59:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

At shutdown, systemd will now log about processes blocking unmounting of file systems.

Oh sweet. I could actually really use this

18:03:11
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @elvishjerricco:matrix.org

At shutdown, systemd will now log about processes blocking unmounting of file systems.

Oh sweet. I could actually really use this

finally, after all these years
22:12:04
23 Oct 2022
@phaer:matrix.orgPaul HaerleWith the networkd PR and a small PR which changes an assertion to a warning https://github.com/NixOS/nixpkgs/pull/197382 I succeeded in building a 30MB initrd without stage2, that can be kexec'ed into to partition the disks (with disko and zfs) and to download and install a nixosConfiguration from a flake - all on a remote host. Still got a few things to iron out, but a PoC went pretty smooth. The initrd being about 5% in size compared to a full nixos kexec-bundle makes it much easier to work on low-memory VPS. Thanks everyone involved in this effort :tada:15:09:07
24 Oct 2022
@colemickens:matrix.orgcolemickensum, hell yes.08:06:49
25 Oct 2022
@kranzes:matrix.org@kranzes:matrix.orgHas anyone got systemd-cryptenroll working without a password slot?11:21:39
@kranzes:matrix.org@kranzes:matrix.orgI initially only had a password slot, so I added my FIDO2 key to the second slot11:22:04
@kranzes:matrix.org@kranzes:matrix.organd wanted to delete the first slot (password one)11:22:10
@kranzes:matrix.org@kranzes:matrix.orgso I deleted it just fine11:22:19
@kranzes:matrix.org@kranzes:matrix.org but every other use of systemd-cryptenroll requires me to put in a passphrase which I no longer have 11:22:43
@kranzes:matrix.org@kranzes:matrix.orgUnlocking the device on boot via the fido2 still works fine, so i'm not locked out.11:22:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgmy steam deck boots without a paswword11:22:58
@kranzes:matrix.org@kranzes:matrix.orgSame, but I wanna add another slot11:23:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgusing the tpm11:23:10
@kranzes:matrix.org@kranzes:matrix.orghow many slots do you have enrolled?11:23:23

Show newer messages


Back to Room ListRoom Version: 6