]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: Split networkd entries into a separate file
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Apr 2022 09:25:22 +0000 (10:25 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 3 May 2022 18:46:14 +0000 (20:46 +0200)
Many distributions ship systemd-networkd as a separate file so we
need to be able to ship the tmpfiles networkd entries as part of
that separate networkd package. Let's split the networkd entries
into a separate file to make that possible.

NEWS
tmpfiles.d/meson.build
tmpfiles.d/systemd-network.conf [new file with mode: 0644]
tmpfiles.d/systemd.conf.in

diff --git a/NEWS b/NEWS
index 10d650bd9ffecd6c168b084daa9feb23f79c8041..74b699b086581fc88bb2942f3ba51b9b70f96481 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -71,6 +71,13 @@ CHANGES WITH 251:
           (as exposed via the SystemCallFilter= setting in service unit files).
           It is apparently used by the linker now.
 
+        * The tmpfiles entries that create the /run/systemd/netif directory and
+          its subdirectories were moved from tmpfiles.d/systemd.conf to
+          tmpfiles.d/systemd-network.conf.
+
+          Users might need to adjust their files that override tmpfiles.d/systemd.conf
+          to account for this change.
+
         Changes in the Boot Loader Specification, kernel-install and sd-boot:
 
         * kernel-install's and bootctl's Boot Loader Specification Type #1
index 306e066f22603fa5267872b38b2c2e881635ed5e..51f0f1099ebb0d1ed6d619fcc6efbf8782676a41 100644 (file)
@@ -13,6 +13,7 @@ files = [['README',               ''],
          ['systemd-pstore.conf',  'ENABLE_PSTORE'],
          ['tmp.conf',             ''],
          ['x11.conf',             ''],
+         ['systemd-network.conf', 'ENABLE_NETWORKD'],
         ]
 
 foreach pair : files
diff --git a/tmpfiles.d/systemd-network.conf b/tmpfiles.d/systemd-network.conf
new file mode 100644 (file)
index 0000000..b30bc91
--- /dev/null
@@ -0,0 +1,13 @@
+#  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.
+
+# See tmpfiles.d(5) for details
+
+d /run/systemd/netif 0755 systemd-network systemd-network -
+d /run/systemd/netif/links 0755 systemd-network systemd-network -
+d /run/systemd/netif/leases 0755 systemd-network systemd-network -
+d /run/systemd/netif/lldp 0755 systemd-network systemd-network -
index 9b2357cd313d1eb16f0cae66967fe5e782a86429..e23e10278239828bebc78b3d1bb33ea9dfc93c4a 100644 (file)
@@ -18,12 +18,6 @@ d /run/systemd/sessions 0755 root root -
 d /run/systemd/users 0755 root root -
 d /run/systemd/machines 0755 root root -
 d /run/systemd/shutdown 0755 root root -
-{% if ENABLE_NETWORKD %}
-d /run/systemd/netif 0755 systemd-network systemd-network -
-d /run/systemd/netif/links 0755 systemd-network systemd-network -
-d /run/systemd/netif/leases 0755 systemd-network systemd-network -
-d /run/systemd/netif/lldp 0755 systemd-network systemd-network -
-{% endif %}
 
 d /run/log 0755 root root -