2 # This file is part of dracut.
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # Prerequisite check(s) for module.
8 # If the binary(s) requirements are not fulfilled the module can't be installed.
9 require_binaries systemd-tmpfiles ||
return 1
11 # Return 255 to only include the module, if another module requires it.
16 # Module dependency requirements.
19 # Return 0 to include the dependent module(s) in the initramfs.
24 # Install the required file(s) and directories for the module in the initramfs.
27 # Excluding "$tmpfilesdir/home.conf", sets up /home /srv
28 # Excluding "$tmpfilesdir/journal-nocow.conf", requires specific btrfs setup
29 # Excluding "$tmpfilesdir/legacy.conf", belongs in separated legacy module
30 # Excluding "$tmpfilesdir/systemd-nologin.conf", belongs in separated pam module
31 # Excluding "$tmpfilesdir/systemd-nspawn.conf", belongs in separated machined module
32 # Excluding "$tmpfilesdir/x11.conf", belongs in separated x11 module
37 "$tmpfilesdir/etc.conf" \
38 "$tmpfilesdir/static-nodes-permissions.conf" \
39 "$tmpfilesdir/systemd-tmp.conf" \
40 "$tmpfilesdir/systemd.conf" \
41 "$tmpfilesdir/var.conf" \
42 "$systemdsystemunitdir"/systemd-tmpfiles-clean.service \
43 "$systemdsystemunitdir/systemd-tmpfiles-clean.service.d/*.conf" \
44 "$systemdsystemunitdir"/systemd-tmpfiles-setup.service \
45 "$systemdsystemunitdir/systemd-tmpfiles-setup.service.d/*.conf" \
46 "$systemdsystemunitdir"/systemd-tmpfiles-setup-dev.service \
47 "$systemdsystemunitdir/systemd-tmpfiles-setup-dev.service.d/*.conf" \
48 "$systemdsystemunitdir"/systemd-tmpfiles-setup-dev-early.service \
49 "$systemdsystemunitdir/systemd-tmpfiles-setup-dev-early.service.d/*.conf" \
50 "$systemdsystemunitdir"/sysinit.target.wants
/systemd-tmpfiles-setup.service \
51 "$systemdsystemunitdir"/sysinit.target.wants
/systemd-tmpfiles-setup-dev.service \
52 "$systemdsystemunitdir"/sysinit.target.wants
/systemd-tmpfiles-setup-dev-early.service \
55 # Install the hosts local user configurations if enabled.
56 if [[ $hostonly ]]; then
60 "$tmpfilesconfdir/*.conf" \
61 "$systemdsystemconfdir"/systemd-tmpfiles-clean.service \
62 "$systemdsystemconfdir/systemd-tmpfiles-clean.service.d/*.conf" \
63 "$systemdsystemconfdir"/systemd-tmpfiles-setup.service \
64 "$systemdsystemconfdir/systemd-tmpfiles-setup.service.d/*.conf" \
65 "$systemdsystemconfdir"/systemd-tmpfiles-setup-dev.service \
66 "$systemdsystemconfdir/systemd-tmpfiles-setup-dev.service.d/*.conf" \
67 "$systemdsystemconfdir"/systemd-tmpfiles-setup-dev-early.service \
68 "$systemdsystemconfdir/systemd-tmpfiles-setup-dev-early.service.d/*.conf"