feat(systemd-timedated): add systemd-timedated module to the spec file
parent
1c41cc90c5
commit
020212534b
|
@ -332,6 +332,7 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
|
||||||
%{dracutlibdir}/modules.d/01systemd-resolved
|
%{dracutlibdir}/modules.d/01systemd-resolved
|
||||||
%{dracutlibdir}/modules.d/01systemd-sysctl
|
%{dracutlibdir}/modules.d/01systemd-sysctl
|
||||||
%{dracutlibdir}/modules.d/01systemd-sysusers
|
%{dracutlibdir}/modules.d/01systemd-sysusers
|
||||||
|
%{dracutlibdir}/modules.d/01systemd-timedated
|
||||||
%{dracutlibdir}/modules.d/01systemd-timesyncd
|
%{dracutlibdir}/modules.d/01systemd-timesyncd
|
||||||
%{dracutlibdir}/modules.d/03modsign
|
%{dracutlibdir}/modules.d/03modsign
|
||||||
%{dracutlibdir}/modules.d/03rescue
|
%{dracutlibdir}/modules.d/03rescue
|
||||||
|
|
|
@ -6,8 +6,10 @@
|
||||||
check() {
|
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 timedatectl || return 1
|
require_binaries \
|
||||||
require_binaries "$systemdutildir"/systemd-timedated || return 1
|
timedatectl \
|
||||||
|
"$systemdutildir"/systemd-timedated \
|
||||||
|
|| return 1
|
||||||
|
|
||||||
# Return 255 to only include the module, if another module requires it.
|
# Return 255 to only include the module, if another module requires it.
|
||||||
return 255
|
return 255
|
||||||
|
@ -18,7 +20,7 @@ check() {
|
||||||
depends() {
|
depends() {
|
||||||
|
|
||||||
# This module has external dependency on other module(s).
|
# This module has external dependency on other module(s).
|
||||||
echo dbus systemd
|
echo dbus
|
||||||
# Return 0 to include the dependent module(s) in the initramfs.
|
# Return 0 to include the dependent module(s) in the initramfs.
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
@ -38,6 +40,6 @@ install() {
|
||||||
if [[ $hostonly ]]; then
|
if [[ $hostonly ]]; then
|
||||||
inst_multiple -H -o \
|
inst_multiple -H -o \
|
||||||
"$systemdsystemconfdir"/systemd-timedated.service \
|
"$systemdsystemconfdir"/systemd-timedated.service \
|
||||||
"$systemdsystemconfdir"/systemd-timedated.service/*.conf
|
"$systemdsystemconfdir/systemd-timedated.service/*.conf"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue