[[ ${#_files[@]} -gt 0 ]] && inst_multiple "${_files[@]}"
}
+# install sysusers files
+inst_sysusers() {
+ inst_multiple -o "$sysusers/$*"
+
+ if [[ $hostonly ]]; then
+ inst_multiple -H -o "$sysusersconfdir/$*"
+ fi
+}
+
# get a command to decompress the given file
get_decompress_cmd() {
case "$1" in
install() {
inst_dir /var/lib/systemd/coredump
+ inst_sysusers systemd-coredump.conf
+
inst_multiple -o \
"$sysctld"/50-coredump.conf \
"$systemdutildir"/coredump.conf \
"$systemdsystemunitdir"/systemd-coredump.socket \
"$systemdsystemunitdir"/systemd-coredump@.service \
"$systemdsystemunitdir"/sockets.target.wants/systemd-coredump.socket \
- "$sysusers"/systemd-coredump.conf \
coredumpctl
# Install library file(s)
"$systemdsystemconfdir/systemd-coredump.socket.d/*.conf" \
"$systemdsystemconfdir"/systemd-coredump@.service \
"$systemdsystemconfdir/systemd-coredump@.service.d/*.conf" \
- "$systemdsystemconfdir"/sockets.target.wants/systemd-coredump.socket \
- "$sysusersconfdir"/systemd-coredump.conf
+ "$systemdsystemconfdir"/sockets.target.wants/systemd-coredump.socket
fi
}
inst_simple "$moddir/initrd.conf" "$systemdutildir/journald.conf.d/initrd.conf"
+ inst_sysusers systemd-journal.conf
+
inst_multiple -o \
"$systemdutildir"/journald.conf \
"$systemdutildir/journald.conf.d/*.conf" \
"$systemdsystemunitdir"/sockets.target.wants/systemd-journald-dev-log.socket \
"$systemdsystemunitdir"/sockets.target.wants/systemd-journald.socket \
"$systemdsystemunitdir"/sysinit.target.wants/systemd-journald.service \
- "$sysusers"/systemd-journal.conf \
journalctl
# Install library file(s)
"$systemdsystemconfdir"/systemd-journald.service \
"$systemdsystemconfdir/systemd-journald.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-journal-catalog-update.service \
- "$systemdsystemconfdir/systemd-journal-catalog-update.service.d/*.conf" \
- "$sysusersconfdir"/systemd-journal.conf
+ "$systemdsystemconfdir/systemd-journal-catalog-update.service.d/*.conf"
fi
}
# Install the required file(s) and directories for the module in the initramfs.
install() {
+ inst_sysusers systemd-network.conf
+
inst_multiple -o \
"$tmpfilesdir"/systemd-network.conf \
"$dbussystem"/org.freedesktop.network1.conf \
"$systemdsystemunitdir"/systemd-networkd-wait-online.service \
"$systemdsystemunitdir"/systemd-networkd-wait-online@.service \
"$systemdsystemunitdir"/systemd-network-generator.service \
- "$sysusers"/systemd-network.conf \
ip
# Enable systemd type units
"$systemdsystemconfdir"/systemd-networkd-wait-online.service \
"$systemdsystemconfdir/systemd-networkd-wait-online.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-networkd-wait-online@.service \
- "$systemdsystemconfdir/systemd-networkd-wait-online@.service.d/*.conf" \
- "$sysusersconfdir"/systemd-network.conf
+ "$systemdsystemconfdir/systemd-networkd-wait-online@.service.d/*.conf"
fi
}
inst_simple "$moddir/resolved-tmpfile-dracut.conf" "$tmpfilesdir/resolved-tmpfile-dracut.conf"
+ inst_sysusers systemd-resolve.conf
+
inst_multiple -o \
"$dbussystem"/org.freedesktop.resolve1.conf \
"$dbussystemservices"/org.freedesktop.resolve1.service \
"$systemdutildir"/systemd-resolved \
"$systemdsystemunitdir"/systemd-resolved.service \
"$systemdsystemunitdir/systemd-resolved.service.d/*.conf" \
- "$sysusers"/systemd-resolve.conf \
resolvectl
# Enable systemd type unit(s)
"$systemdutilconfdir"/resolved.conf \
"$systemdutilconfdir/resolved.conf.d/*.conf" \
"$systemdsystemconfdir"/systemd-resolved.service \
- "$systemdsystemconfdir/systemd-resolved.service.d/*.conf" \
- "$sysusersconfdir"/systemd-resolve.conf
+ "$systemdsystemconfdir/systemd-resolved.service.d/*.conf"
fi
}
inst_simple "$moddir/sysusers-dracut.conf" "$systemdsystemunitdir/systemd-sysusers.service.d/sysusers-dracut.conf"
+ inst_sysusers basic.conf
+ inst_sysusers systemd.conf
+
inst_multiple -o \
- "$sysusers"/basic.conf \
- "$sysusers"/systemd.conf \
"$systemdsystemunitdir"/systemd-sysusers.service \
"$systemdsystemunitdir"/sysinit.target.wants/systemd-sysusers.service \
systemd-sysusers
# Install the hosts local user configurations if enabled.
if [[ $hostonly ]]; then
inst_multiple -H -o \
- "$sysusersconfdir"/basic.conf \
- "$sysusersconfdir"/systemd.conf \
"$systemdsystemconfdir"/systemd-sysusers.service \
"$systemdsystemconfdir/systemd-sysusers.service.d/*.conf"
fi
# Enable this if networkd ( not the module ) is disabled at build time and you want to use timesyncd
# inst_simple "$moddir/timesyncd-tmpfile-dracut.conf" "$tmpfilesdir/timesyncd-tmpfile-dracut.conf"
+ inst_sysusers systemd-timesync.conf
+
inst_multiple -o \
"$dbussystem"/org.freedesktop.timesync1.conf \
"$dbussystemservices"/org.freedesktop.timesync1.service \
"$systemdsystemunitdir"/systemd-timesyncd.service \
"$systemdsystemunitdir/systemd-timesyncd.service.d/*.conf" \
"$systemdsystemunitdir"/systemd-time-wait-sync.service \
- "$systemdsystemunitdir/systemd-time-wait-sync.service.d/*.conf" \
- "$sysusers"/systemd-timesync.conf
+ "$systemdsystemunitdir/systemd-time-wait-sync.service.d/*.conf"
# Enable systemd type unit(s)
for i in \
"$systemdsystemconfdir"/systemd-timesyncd.service \
"$systemdsystemconfdir/systemd-timesyncd.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-time-wait-sync.service \
- "$systemdsystemconfdir/systemd-time-wait-sync.service.d/*.conf" \
- "$sysusersconfdir"/systemd-timesync.conf
+ "$systemdsystemconfdir/systemd-time-wait-sync.service.d/*.conf"
fi
}
inst_dir "$dbussystemconfdir"
inst_dir "$dbussystemservicesconfdir"
+ inst_sysusers dbus.conf
+
inst_multiple -o \
"$dbus"/session.conf \
"$dbus"/system.conf \
"$dbussystem"/org.freedesktop.systemd1.conf \
"$dbusservicesconfdir"/org.freedesktop.systemd1.service \
"$dbussystemservices"/org.freedesktop.systemd1.service \
- "$sysusers"/dbus.conf \
"$systemdcatalog"/dbus-broker.catalog \
"$systemdcatalog"/dbus-broker-launch.catalog \
"$systemdsystemunitdir"/dbus-broker.service \
inst_multiple -H -o \
"$dbusconfdir"/session.conf \
"$dbusconfdir"/system.conf \
- "$sysusersconfdir"/dbus.conf \
"$systemdsystemconfdir"/dbus.socket \
"$systemdsystemconfdir"/dbus.socket.d/*.conf \
"$systemdsystemconfdir"/dbus-broker.service \
# Install the required file(s) and directories for the module in the initramfs.
install() {
+ inst_sysusers tpm2-tss.conf
inst_multiple -o \
- "$sysusers"/tpm2-tss.conf \
"$tmpfilesdir"/tpm2-tss-fapi.conf \
"$udevrulesdir"/60-tpm-udev.rules \
"$systemdutildir"/system-generators/systemd-tpm2-generator \