mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Currently, when running "systemctl preset-all --root=xxx" in mkosi to enable/disable units for initrds, the system presets are used. The problem with this approach is that the system presets are written for the system, and that is not necessarily ideal for an initrd, but we still want to use the same packages in the initrd that we install in the system, so let's introduce a separate directory for initrd presets which is used to pick up preset files from when we detect that we're configuring an initrd (by looking for /etc/initrd-release). We also introduce a systemd preset file for the initrd, which is based on the system one, except with all the stuff unnecessary for the initrd removed.