mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
tmpfiles: Split networkd entries into a separate file
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.
This commit is contained in:
@@ -13,6 +13,7 @@ files = [['README', ''],
|
||||
['systemd-pstore.conf', 'ENABLE_PSTORE'],
|
||||
['tmp.conf', ''],
|
||||
['x11.conf', ''],
|
||||
['systemd-network.conf', 'ENABLE_NETWORKD'],
|
||||
]
|
||||
|
||||
foreach pair : files
|
||||
|
||||
13
tmpfiles.d/systemd-network.conf
Normal file
13
tmpfiles.d/systemd-network.conf
Normal file
@@ -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 -
|
||||
@@ -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 -
|
||||
|
||||
|
||||
Reference in New Issue
Block a user