!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/5126 Servers

Load older messages


SenderMessageTime
2 Apr 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea I see no reason to patch lvm for this if that does the trick06:03:51
@bobvanderlinden_:matrix.orgbobvanderlindenIndeed, that was what I was thinking as well 😅06:04:59
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
Yea I see no reason to patch lvm for this if that does the trick
BindPaths= goes brrrrrr
09:58:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Huh, TIL 09:59:35
@flokli:matrix.orgflokliZFS and LVM are both held together by a ton of bash and udev scripts13:15:56
@flokli:matrix.orgflokliI'd love if this would get absorbed more into udev, or systemd generators, but at least with ZFS it doesn't seem likely13:17:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.org ZFS already has a good systemd generator for stage 2, NixOS just doesn't use it. I think there's an LVM generator too, isn't there? 18:08:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWe could potentially use these in stage 1 now too...18:08:31
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

Yea:

lvm2-activation-generator - generator for systemd units to activate LVM volumes on boot

18:09:35
@bobvanderlinden_:matrix.orgbobvanderlindenI thought the latest version of lvm2 doesn't have the lvm2 systemd generator anymore. The version before did have a generator.20:38:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh, yea my system is on an older nixpkgs22:36:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWhy get rid of it?22:36:30
@bobvanderlinden_:matrix.orgbobvanderlindenIt was removed upstream. Wasn't needed anymore. They use a different way to handle lvms in systemd/udevd. I haven't figured out how the new method works yet.23:35:28
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @bobvanderlinden_:matrix.org
It was removed upstream. Wasn't needed anymore. They use a different way to handle lvms in systemd/udevd. I haven't figured out how the new method works yet.
I think via udev rules and ephemeral systemd units? I know I looked at it at some point, when I updated lvm2 in nixpkgs.
23:37:41
@bobvanderlinden_:matrix.orgbobvanderlindenCould be and that would be my best guess as well. I just haven't looked at it in detail yet. I just know the lvm2 part of my branch didn't work yet. The lack of a generator was surprising, as I did see the generator earlier and added support for adding third-party generators in initrd. Rebasing the branch resulted in the generator not being there. I've been fumbling with this quite a bit.23:43:18
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de If you want to look into it, this commit dropped the generator and updated a bunch of documentation. 23:47:53
3 Apr 2022
@flokli:matrix.orgflokliSeems https://github.com/NixOS/nixpkgs/issues/167001 did regress containers06:54:51
@flokli:matrix.orgflokli* Seems https://github.com/NixOS/nixpkgs/pull/165453 did regress containers: https://github.com/NixOS/nixpkgs/issues/16700106:55:34
@flokli:matrix.orgflokli I'm in the bike today, but Janne Heß can you take a look? 06:56:27
@bobvanderlinden_:matrix.orgbobvanderlinden
In reply to @andreas.schraegle:helsinki-systems.de
If you want to look into it, this commit dropped the generator and updated a bunch of documentation.
Aaah we probably just have to use the lvm2_dmeventd package.
07:06:23
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @flokli:matrix.org
I'm in the bike today, but Janne Heß can you take a look?
Ah I just saw the message... It's fixed
13:42:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWords can't describe how happy I am that this has been merged :) I've been messing with this for over two years, trying to find the right way for it to be merge-worthy. And now it's there and it's awesome.17:40:06
@arianvp:matrix.org@arianvp:matrix.orgYay!17:59:57
@arianvp:matrix.org@arianvp:matrix.orgI'll be spending ocean sprint on a lot of the follow up tickets I think18:00:04
@arianvp:matrix.org@arianvp:matrix.orgLuks, Plymouth, silent boot 18:00:15
@arianvp:matrix.org@arianvp:matrix.orgBut I forgot to bring my non-mac laptop so maybe I'll work on M1 support on Nixos instead lol18:00:47
@flokli:matrix.orgflokliRedacted or Malformed Event18:26:07
@flokli:matrix.orgflokliRedacted or Malformed Event18:26:19
* @colemickens:matrix.orgcolemickens 👀 for a luks pr to test23:18:11
4 Apr 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de ElvishJerricco or bobvanderlinden: didn't one of you try to build the image without calling cpio? Is that still an ongoing effort? 09:25:44

Show newer messages


Back to Room ListRoom Version: 6