mirror of
https://github.com/systemd/systemd
synced 2025-10-05 16:03:15 +02:00
presets: Disable by default for initrd presets
For initrd presets, we can change the default to disable services by default instead of enabling by default without breaking compat so let's do that as it makes much more sense as a default than enabling everything by default.
This commit is contained in:
committed by
Luca Boccassi
parent
9a08000d18
commit
1f0acba512
15
presets/99-default-initrd.preset
Normal file
15
presets/99-default-initrd.preset
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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.
|
||||
|
||||
# We disable everything by default because:
|
||||
# - Every unnecessary service that is enabled slows down boot
|
||||
# - If the initrd is built out of packages there will be always be
|
||||
# unnecessary services that are pulled in that aren't necessary to
|
||||
# boot the system.
|
||||
disable *
|
@@ -10,3 +10,7 @@ install_data('90-systemd-user.preset',
|
||||
install_data('90-systemd-initrd.preset',
|
||||
install_dir : initrdpresetdir,
|
||||
rename : '90-systemd.preset')
|
||||
|
||||
install_data('99-default-initrd.preset',
|
||||
install_dir : initrdpresetdir,
|
||||
rename : '99-default.preset')
|
||||
|
Reference in New Issue
Block a user