| 7 Apr 2022 |
@elvishjerricco:matrix.org | I 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 | I‘ve said this before and I will keep saying this: There is no way we will get rid of all activation scripts | 16:04:32 |
@elvishjerricco:matrix.org | why is that? | 16:05:06 |
@janne.hess:helsinki-systems.de | things I issume systemd wants: users/groups, /etc, /bin/sh, /usr/bin/env, all wrappers, /run/booted-system | 16:06:50 |
@elvishjerricco:matrix.org | Sure, 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 idea | 16:07:31 |
@janne.hess:helsinki-systems.de | I agree with that but I'm already so close to success that I don't want to stop right now | 16:15:15 |
@janne.hess:helsinki-systems.de | It may be a good idea in general, not just for stage 1, yeah | 16:15:29 |
@elvishjerricco:matrix.org | fair enough | 16:15:42 |
@janne.hess:helsinki-systems.de | that's probably why I don't have no udev database: https://github.com/systemd/systemd/blob/main/units/initrd-udevadm-cleanup-db.service | 16:33:53 |
@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.service | 16:33:59 |
@janne.hess:helsinki-systems.de | I found it \o/: https://github.com/systemd/systemd/issues/12953 | 16:37:47 |
@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 | I 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#L588 | 17:09:17 |
@janne.hess:helsinki-systems.de | we will probably need that for iso booting, yes | 17:37:51 |
@janne.hess:helsinki-systems.de | hmm do we maybe need to trigger&&settle udev agian in stage 2?
| 17:40:50 |
@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 | So... maybe we just disable initrd-udevadm-cleanup-db.service? | 17:48:18 |
@janne.hess:helsinki-systems.de | well the systemd devs have good reason for it | 17:48:26 |
@elvishjerricco:matrix.org | Like, according to Poettering, you shouldn't do that | 17:48:34 |
@elvishjerricco:matrix.org | because stage 2 might have a different udev distro, or different rules | 17:48:46 |
@janne.hess:helsinki-systems.de | lennart explained that this is to make sure all udev rules and the hwdb are processed from stage 2 because stage 1 is usually minimalk | 17:48:51 |
@elvishjerricco:matrix.org | I suspect NixOS is far less likely to have those issues | 17:48:54 |
@janne.hess:helsinki-systems.de | yeah, what you just said | 17:48:57 |
@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 | I have them right now with a system 249 in stage 2 and 250 in stage 1 :D | 17:49:13 |
@janne.hess:helsinki-systems.de | (that works very well btw) | 17:49:30 |
@elvishjerricco:matrix.org | have what right now? | 17:49:48 |
@janne.hess:helsinki-systems.de | two systemd versions | 17:49:58 |
@elvishjerricco:matrix.org | OH | 17:50:01 |
@elvishjerricco:matrix.org | uh | 17:50:04 |