if [[ $hostonly ]]; then
inst_multiple -H -o \
"$systemdutilconfdir"/coredump.conf \
- "$systemdsystemconfdir"/coredump.conf.d/*.conf \
+ "$systemdsystemconfdir/coredump.conf.d/*.conf" \
"$systemdsystemconfdir"/systemd-coredump.socket \
- "$systemdsystemconfdir"/systemd-coredump.socket.d/*.conf \
+ "$systemdsystemconfdir/systemd-coredump.socket.d/*.conf" \
"$systemdsystemconfdir"/systemd-coredump@.service \
- "$systemdsystemconfdir"/systemd-coredump@.service.d/*.conf \
+ "$systemdsystemconfdir/systemd-coredump@.service.d/*.conf" \
"$systemdsystemconfdir"/sockets.target.wants/systemd-coredump.socket
fi
}
# Prerequisite check(s) for module.
check() {
- # If the binary(s) requirements are not fulfilled the module can't be installed
+ # If the binary(s) requirements are not fulfilled the module can't be installed.
require_binaries systemd-repart || return 1
# Return 255 to only include the module, if another module requires it.
install() {
inst_multiple -o \
- "$libdir"/repart.d/*.conf \
+ "$libdir/repart.d/*.conf" \
"$systemdsystemunitdir"/systemd-repart.service \
"$systemdsystemunitdir"/initrd-root-fs.target.wants/systemd-repart.service \
systemd-repart
# Install the hosts local user configurations if enabled.
if [[ $hostonly ]]; then
inst_multiple -H -o \
- /etc/repart.d/*.conf \
+ "/etc/repart.d/*.conf" \
"$systemdsystemconfdir"/systemd-repart.service \
- "$systemdsystemconfdir"/systemd-repart.service.d/*.conf
+ "$systemdsystemconfdir/systemd-repart.service.d/*.conf"
fi
}
install() {
inst_multiple -o \
- "$sysctld"/*.conf \
+ "$sysctld/*.conf" \
"$systemdsystemunitdir"/systemd-sysctl.service \
"$systemdsystemunitdir"/sysinit.target.wants/systemd-sysctl.service \
"$systemdutildir"/systemd-sysctl
if [[ $hostonly ]]; then
inst_multiple -H -o \
/etc/sysctl.conf \
- "$sysctlconfdir"/*.conf \
+ "$sysctlconfdir/*.conf" \
"$systemdsystemconfdir"/systemd-sysctl.service \
- "$systemdsystemconfdir"/systemd-sysctl.service.d/*.conf
+ "$systemdsystemconfdir/systemd-sysctl.service.d/*.conf"
fi
# Enable the systemd type service unit for sysctl.
"$sysusersconfdir"/basic.conf \
"$sysusersconfdir"/systemd.conf \
"$systemdsystemconfdir"/systemd-sysusers.service \
- "$systemdsystemconfdir"/systemd-sysusers.service.d/*.conf
+ "$systemdsystemconfdir/systemd-sysusers.service.d/*.conf"
fi
# Enable the systemd type service unit for sysusers.