mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
aade0c3b6e
This reverts commit 7e1ed1f3b2
.
systemd-repart is not a user service that should be something people
enable/disable, instead it should just work if there's configuration for
it. It's like systemd-tmpfiles, systemd-sysusers, systemd-load-modules,
systemd-binfmt, systemd-systemd-sysctl which are NOPs if they have no
configuration, and thus don't hurt, but cannot be disabled since they
are too deep part of the OS.
This doesn't mean people couldn't disable the service if they really
want to, there's after all "systemctl mask" and build-time disabling,
but those are OS developer facing instead of admin facing, that's how it
should be.
Note that systemd-repart is in particular an initrd service, and so far
enable/disable state of those is not managed anyway via "systemctl
enable/disable" but more what dracut decides to package up and what not.
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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. Most of these
|
|
# should be enabled by default, even if the distribution follows a general
|
|
# default-off policy.
|
|
|
|
enable remote-fs.target
|
|
enable remote-cryptsetup.target
|
|
enable machines.target
|
|
|
|
enable getty@.service
|
|
enable systemd-timesyncd.service
|
|
enable systemd-networkd.service
|
|
enable systemd-resolved.service
|
|
enable systemd-homed.service
|
|
enable systemd-userdbd.socket
|
|
|
|
disable console-getty.service
|
|
disable debug-shell.service
|
|
|
|
disable halt.target
|
|
disable kexec.target
|
|
disable poweroff.target
|
|
enable reboot.target
|
|
disable rescue.target
|
|
disable exit.target
|
|
|
|
disable syslog.socket
|
|
|
|
disable systemd-journal-gatewayd.*
|
|
disable systemd-journal-remote.*
|
|
disable systemd-journal-upload.*
|
|
|
|
enable systemd-pstore.service
|
|
|
|
# Passive targets: always off by default, since they should only be pulled in
|
|
# by dependent units.
|
|
|
|
disable cryptsetup-pre.target
|
|
disable getty-pre.target
|
|
disable local-fs-pre.target
|
|
disable network.target
|
|
disable network-pre.target
|
|
disable nss-lookup.target
|
|
disable nss-user-lookup.target
|
|
disable remote-fs-pre.target
|
|
disable rpcbind.target
|
|
disable time-set.target
|
|
disable time-sync.target
|