mirror of
https://github.com/systemd/systemd
synced 2025-10-05 16:03:15 +02: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.
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# Settings for systemd units distributed with systemd itself, specific to initrds.
|
|
|
|
enable systemd-journald-audit.socket
|
|
enable systemd-network-generator.service
|
|
enable systemd-networkd.service
|
|
enable systemd-networkd-wait-online.service
|
|
enable systemd-pstore.service
|
|
enable systemd-resolved.service
|
|
enable systemd-tpm2-clear.service
|
|
|
|
disable console-getty.service
|
|
disable debug-shell.service
|
|
|
|
disable exit.target
|
|
disable halt.target
|
|
disable kexec.target
|
|
disable poweroff.target
|
|
enable reboot.target
|
|
disable rescue.target
|
|
|
|
disable proc-sys-fs-binfmt_misc.mount
|
|
|
|
disable syslog.socket
|
|
|
|
disable systemd-boot-check-no-failures.service
|
|
disable systemd-journal-gatewayd.*
|
|
disable systemd-journal-remote.*
|
|
disable systemd-journal-upload.*
|
|
disable systemd-time-wait-sync.service
|