]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
presets: Disable by default for initrd presets
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 4 Jul 2025 08:28:17 +0000 (10:28 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 4 Jul 2025 15:22:27 +0000 (16:22 +0100)
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.

presets/99-default-initrd.preset [new file with mode: 0644]
presets/meson.build

diff --git a/presets/99-default-initrd.preset b/presets/99-default-initrd.preset
new file mode 100644 (file)
index 0000000..25b725b
--- /dev/null
@@ -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 *
index cc852d7c17258541ccf8580600abf20805542326..4d16aadc519c49105d78343c4912965ba6d30606 100644 (file)
@@ -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')