!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
7 Apr 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI wonder if it might be better to hold off on handover until we have a cleaner story for this. Like maybe systemd-initrd can come with a deprecation of activation scripts...16:03:13
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI‘ve said this before and I will keep saying this: There is no way we will get rid of all activation scripts16:04:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhy is that?16:05:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethings I issume systemd wants: users/groups, /etc, /bin/sh, /usr/bin/env, all wrappers, /run/booted-system16:06:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSure, but I think we can cover the basics in an internal way, rather than providing an externally available API that's virtually always a bad idea16:07:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI agree with that but I'm already so close to success that I don't want to stop right now16:15:15
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deIt may be a good idea in general, not just for stage 1, yeah16:15:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgfair enough16:15:42
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethat's probably why I don't have no udev database: https://github.com/systemd/systemd/blob/main/units/initrd-udevadm-cleanup-db.service16:33:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de * that's probably why I have no udev database: https://github.com/systemd/systemd/blob/main/units/initrd-udevadm-cleanup-db.service16:33:59
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de I found it \o/: https://github.com/systemd/systemd/issues/12953 16:37:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

the data passed from initrd to host should be very very carefully picked, minimal and stable. Blanket passing the whole udev database over is the wrong approach.

Hmm... That sounds problematic considering that issue is still open

17:05:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI wonder if we need something like this from the old initrd https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1-init.sh#L58817:09:17
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dewe will probably need that for iso booting, yes17:37:51
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dehmm do we maybe need to trigger&&settle udev agian in stage 2? 17:40:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Well I noticed we don't do --cleanup-db in the old initrd I don't think 17:48:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo... maybe we just disable initrd-udevadm-cleanup-db.service?17:48:18
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dewell the systemd devs have good reason for it17:48:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgLike, according to Poettering, you shouldn't do that17:48:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbecause stage 2 might have a different udev distro, or different rules17:48:46
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.delennart explained that this is to make sure all udev rules and the hwdb are processed from stage 2 because stage 1 is usually minimalk17:48:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI suspect NixOS is far less likely to have those issues17:48:54
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah, what you just said17:48:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.org plus... we already make that mistake, so it wouldn't be a regression :P 17:49:08
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI have them right now with a system 249 in stage 2 and 250 in stage 1 :D17:49:13
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de(that works very well btw)17:49:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghave what right now?17:49:48
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.detwo systemd versions17:49:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOH17:50:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orguh17:50:04

Show newer messages


Back to Room ListRoom Version: 6