Move oomd to systemd-udev
It is really only useful on "full" machines, either VMs or bare metal, so it should be in systemd-udev.
This commit is contained in:
parent
e8cc280d45
commit
5cae6af05f
@ -116,6 +116,9 @@ for file in files(buildroot):
|
||||
elif '.so.' in n:
|
||||
o = o_libs
|
||||
|
||||
elif re.search(r'10-oomd-.*defaults.conf|lib/systemd/oomd.conf.d', n, re.X):
|
||||
o = o_oomd_defaults
|
||||
|
||||
elif re.search(r'''udev(?!\.pc)|
|
||||
hwdb|
|
||||
bootctl|
|
||||
@ -160,6 +163,7 @@ for file in files(buildroot):
|
||||
sysctl|
|
||||
coredump|
|
||||
homed|home1|
|
||||
oomd|
|
||||
portabled|portable1
|
||||
''', n, re.X): # coredumpctl, homectl, portablectl are included in the main package because
|
||||
# they can be used to interact with remote daemons. Also, the user could be
|
||||
@ -179,9 +183,6 @@ for file in files(buildroot):
|
||||
''', n, re.X): # resolvectl and nss-resolve are in the main package.
|
||||
o = o_resolve
|
||||
|
||||
elif re.search(r'10-oomd-.*defaults.conf|lib/systemd/oomd.conf.d', n, re.X):
|
||||
o = o_oomd_defaults
|
||||
|
||||
else:
|
||||
o = o_main
|
||||
|
||||
|
17
systemd.spec
17
systemd.spec
@ -500,7 +500,7 @@ resolver, as well as an LLMNR and MulticastDNS resolver and responder.
|
||||
|
||||
%package oomd-defaults
|
||||
Summary: Configuration files for systemd-oomd
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-udev = %{version}-%{release}
|
||||
License: LGPL-2.1-or-later
|
||||
BuildArch: noarch
|
||||
|
||||
@ -871,13 +871,6 @@ systemd-machine-id-setup &>/dev/null || :
|
||||
# this would make things worse, increasing the number of warnings we get
|
||||
# about needed daemon-reload.
|
||||
|
||||
oomd_state=$(systemctl is-active systemd-oomd 2>/dev/null || :)
|
||||
|
||||
# Work-around for #1931034. Remove after F34 is released.
|
||||
if [ "$oomd_state" == "active" ]; then
|
||||
systemctl stop -q systemd-oomd 2>/dev/null || :
|
||||
fi
|
||||
|
||||
systemctl daemon-reexec &>/dev/null || {
|
||||
# systemd v239 had bug #9553 in D-Bus authentication of the private socket,
|
||||
# which was later fixed in v240 by #9625.
|
||||
@ -898,10 +891,6 @@ systemctl daemon-reexec &>/dev/null || {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$oomd_state" == "active" ]; then
|
||||
systemctl start -q systemd-oomd 2>/dev/null || :
|
||||
fi
|
||||
|
||||
[ $1 -eq 1 ] || exit 0
|
||||
|
||||
# create /var/log/journal only on initial installation,
|
||||
@ -928,7 +917,7 @@ if [ $1 -eq 1 ]; then
|
||||
systemd-tmpfiles --create &>/dev/null || :
|
||||
fi
|
||||
|
||||
%systemd_postun_with_restart systemd-timedated.service systemd-hostnamed.service systemd-journald.service systemd-localed.service systemd-userdbd.service systemd-oomd.service
|
||||
%systemd_postun_with_restart systemd-timedated.service systemd-hostnamed.service systemd-journald.service systemd-localed.service systemd-userdbd.service
|
||||
|
||||
# FIXME: systemd-logind.service is excluded (https://github.com/systemd/systemd/pull/17558)
|
||||
|
||||
@ -966,7 +955,7 @@ systemctl --no-reload preset systemd-oomd.service &>/dev/null || :
|
||||
# a different package version.
|
||||
systemctl --no-reload preset systemd-journald-audit.socket &>/dev/null || :
|
||||
|
||||
%global udev_services systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket systemd-homed.service systemd-timesyncd.service %{?want_bootloader:systemd-boot-update.service} systemd-portabled.service systemd-pstore.service remote-cryptsetup.target
|
||||
%global udev_services systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket systemd-homed.service %{?want_bootloader:systemd-boot-update.service} systemd-oomd.service systemd-portabled.service systemd-pstore.service systemd-timesyncd.service remote-cryptsetup.target
|
||||
|
||||
%post udev
|
||||
# Move old stuff around in /var/lib
|
||||
|
Loading…
Reference in New Issue
Block a user