Accepting request 1183029 from Base:System
- Don't automatically clean unmodified config files up (bsc#1226415) Relying on the presence of .rpmsave for detecting unmodified main config files couldn't work as it created a time window in which some of the systemd services were restarted with no config file. That had the bad side effect to restart them with the upstream defaults, ignoring any user's customization. - testsuite: move a misplaced %endif - Merge systemd-coredump back into the main package (bsc#1091684) - testsuite: only require the devel packages when pulling the dlopen'd dependencies (the libraries are dependencies of the devel packages). OBS-URL: https://build.opensuse.org/request/show/1183029 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=426
This commit is contained in:
commit
37853fecc3
@ -1,23 +0,0 @@
|
||||
#
|
||||
# Please keep the list sorted (with `LC_ALL=C sort`).
|
||||
#
|
||||
%dir %{_localstatedir}/lib/systemd/coredump
|
||||
%dir %{_sysconfdir}/systemd/coredump.conf.d
|
||||
%{_bindir}/coredumpctl
|
||||
%if %{without bootstrap}
|
||||
%{_datadir}/bash-completion/completions/coredumpctl
|
||||
%{_datadir}/zsh/site-functions/_coredumpctl
|
||||
%{_mandir}/man1/coredumpctl.1.gz
|
||||
%{_mandir}/man5/coredump.conf.5.gz
|
||||
%{_mandir}/man5/coredump.conf.d.5.gz
|
||||
%{_mandir}/man8/systemd-coredump.8.gz
|
||||
%{_mandir}/man8/systemd-coredump.socket.8.gz
|
||||
%{_mandir}/man8/systemd-coredump@.service.8.gz
|
||||
%endif
|
||||
%{_sysctldir}/50-coredump.conf
|
||||
%{_systemd_util_dir}/coredump.conf
|
||||
%{_systemd_util_dir}/systemd-coredump
|
||||
%{_sysusersdir}/systemd-coredump.conf
|
||||
%{_unitdir}/sockets.target.wants/systemd-coredump.socket
|
||||
%{_unitdir}/systemd-coredump.socket
|
||||
%{_unitdir}/systemd-coredump@.service
|
@ -9,6 +9,8 @@
|
||||
%if %{with sd_boot}
|
||||
%dir %{_unitdir}/initrd.target.wants
|
||||
%endif
|
||||
# Main config files have been replaced in favor of drop-ins.
|
||||
%ghost %{_sysconfdir}/systemd/oomd.conf
|
||||
%{_bindir}/oomctl
|
||||
%{_bindir}/systemd-vmspawn
|
||||
%if %{with sd_boot}
|
||||
|
@ -4,6 +4,9 @@
|
||||
%dir %{_sysconfdir}/systemd/journal-remote.conf.d
|
||||
%dir %{_sysconfdir}/systemd/journal-upload.conf.d
|
||||
%ghost %dir %{_localstatedir}/log/journal/remote
|
||||
# Main config files have been replaced in favor of drop-ins.
|
||||
%ghost %{_sysconfdir}/systemd/journal-remote.conf
|
||||
%ghost %{_sysconfdir}/systemd/journal-upload.conf
|
||||
%{_datadir}/systemd/gatewayd
|
||||
%{_datadir}/systemd/gatewayd/browse.html
|
||||
%{_mandir}/man5/journal-remote.conf.5.gz
|
||||
|
@ -5,6 +5,8 @@
|
||||
%dir %{_sysconfdir}/systemd/network
|
||||
%dir %{_sysconfdir}/systemd/networkd.conf.d
|
||||
%dir %{_systemd_util_dir}/network
|
||||
# Main config files have been replaced in favor of drop-ins.
|
||||
%ghost %{_sysconfdir}/systemd/networkd.conf
|
||||
%{_bindir}/networkctl
|
||||
%{_datadir}/bash-completion/completions/networkctl
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.network1.DHCPServer.xml
|
||||
|
@ -25,12 +25,14 @@
|
||||
%dir %{_libdir}/systemd
|
||||
%dir %{_localstatedir}/lib/systemd
|
||||
%dir %{_localstatedir}/lib/systemd/catalog
|
||||
%dir %{_localstatedir}/lib/systemd/coredump
|
||||
%dir %{_localstatedir}/lib/systemd/rpm
|
||||
%dir %{_modprobedir}
|
||||
%dir %{_sysconfdir}/X11/xorg.conf.d
|
||||
%dir %{_sysconfdir}/binfmt.d
|
||||
%dir %{_sysconfdir}/sysctl.d
|
||||
%dir %{_sysconfdir}/systemd
|
||||
%dir %{_sysconfdir}/systemd/coredump.conf.d
|
||||
%dir %{_sysconfdir}/systemd/journald.conf.d
|
||||
%dir %{_sysconfdir}/systemd/logind.conf.d
|
||||
%dir %{_sysconfdir}/systemd/system
|
||||
@ -89,9 +91,17 @@
|
||||
%ghost %config(noreplace) %{_sysconfdir}/machine-info
|
||||
%ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal
|
||||
%ghost %{_localstatedir}/lib/systemd/catalog/database
|
||||
# Main config files have been replaced in favor of drop-ins.
|
||||
%ghost %{_sysconfdir}/systemd/journald.conf
|
||||
%ghost %{_sysconfdir}/systemd/logind.conf
|
||||
%ghost %{_sysconfdir}/systemd/system.conf
|
||||
%ghost %{_sysconfdir}/systemd/user.conf
|
||||
%license LICENSE.GPL2
|
||||
%license LICENSE.LGPL2.1
|
||||
%{_bindir}/busctl
|
||||
%if %{without bootstrap}
|
||||
%{_bindir}/coredumpctl
|
||||
%endif
|
||||
%{_bindir}/hostnamectl
|
||||
%{_bindir}/journalctl
|
||||
%{_bindir}/localectl
|
||||
@ -128,6 +138,7 @@
|
||||
%if %{without bootstrap}
|
||||
%{_bindir}/userdbctl
|
||||
%{_datadir}/bash-completion/completions/busctl
|
||||
%{_datadir}/bash-completion/completions/coredumpctl
|
||||
%{_datadir}/bash-completion/completions/hostnamectl
|
||||
%{_datadir}/bash-completion/completions/journalctl
|
||||
%{_datadir}/bash-completion/completions/localectl
|
||||
@ -192,6 +203,7 @@
|
||||
%{_datadir}/systemd/language-fallback-map
|
||||
%if %{without bootstrap}
|
||||
%{_datadir}/zsh/site-functions/_busctl
|
||||
%{_datadir}/zsh/site-functions/_coredumpctl
|
||||
%{_datadir}/zsh/site-functions/_hostnamectl
|
||||
%{_datadir}/zsh/site-functions/_journalctl
|
||||
%{_datadir}/zsh/site-functions/_localectl
|
||||
@ -216,6 +228,7 @@
|
||||
%{_libdir}/systemd/libsystemd-shared-%{systemd_major}.so
|
||||
%if %{without bootstrap}
|
||||
%{_mandir}/man1/busctl.1.gz
|
||||
%{_mandir}/man1/coredumpctl.1.gz
|
||||
%{_mandir}/man1/hostnamectl.1.gz
|
||||
%{_mandir}/man1/init.1.gz
|
||||
%{_mandir}/man1/journalctl.1.gz
|
||||
@ -251,6 +264,8 @@
|
||||
%{_mandir}/man1/timedatectl.1.gz
|
||||
%{_mandir}/man1/userdbctl.1.gz
|
||||
%{_mandir}/man5/binfmt.d.5.gz
|
||||
%{_mandir}/man5/coredump.conf.5.gz
|
||||
%{_mandir}/man5/coredump.conf.d.5.gz
|
||||
%{_mandir}/man5/dnssec-trust-anchors.d.5.gz
|
||||
%{_mandir}/man5/environment.d.5.gz
|
||||
%{_mandir}/man5/extension-release.5.gz
|
||||
@ -340,6 +355,9 @@
|
||||
%{_mandir}/man8/systemd-boot-check-no-failures.service.8.gz
|
||||
%{_mandir}/man8/systemd-confext.8.gz
|
||||
%{_mandir}/man8/systemd-confext.service.8.gz
|
||||
%{_mandir}/man8/systemd-coredump.8.gz
|
||||
%{_mandir}/man8/systemd-coredump.socket.8.gz
|
||||
%{_mandir}/man8/systemd-coredump@.service.8.gz
|
||||
%{_mandir}/man8/systemd-debug-generator.8.gz
|
||||
%{_mandir}/man8/systemd-environment-d-generator.8.gz
|
||||
%{_mandir}/man8/systemd-getty-generator.8.gz
|
||||
@ -405,8 +423,14 @@
|
||||
%{_sbindir}/reboot
|
||||
%{_sbindir}/shutdown
|
||||
%{_sysconfdir}/xdg/systemd/user
|
||||
%if %{without bootstrap}
|
||||
%{_sysctldir}/50-coredump.conf
|
||||
%endif
|
||||
%{_sysctldir}/99-sysctl.conf
|
||||
%{_systemd_user_env_generator_dir}/30-systemd-environment-d-generator
|
||||
%if %{without bootstrap}
|
||||
%{_systemd_util_dir}/coredump.conf
|
||||
%endif
|
||||
%{_systemd_util_dir}/journald.conf
|
||||
%{_systemd_util_dir}/logind.conf
|
||||
%{_systemd_util_dir}/rpm/fixlet-systemd-post.sh
|
||||
@ -416,6 +440,9 @@
|
||||
%{_systemd_util_dir}/systemd-binfmt
|
||||
%{_systemd_util_dir}/systemd-boot-check-no-failures
|
||||
%{_systemd_util_dir}/systemd-cgroups-agent
|
||||
%if %{without bootstrap}
|
||||
%{_systemd_util_dir}/systemd-coredump
|
||||
%endif
|
||||
%{_systemd_util_dir}/systemd-executor
|
||||
%{_systemd_util_dir}/systemd-hostnamed
|
||||
%{_systemd_util_dir}/systemd-journald
|
||||
@ -469,6 +496,9 @@
|
||||
%{_systemdgeneratordir}/systemd-run-generator
|
||||
%{_systemdgeneratordir}/systemd-system-update-generator
|
||||
%{_systemdusergeneratordir}/systemd-xdg-autostart-generator
|
||||
%if %{without bootstrap}
|
||||
%{_sysusersdir}/systemd-coredump.conf
|
||||
%endif
|
||||
%{_sysusersdir}/systemd-journal.conf
|
||||
%{_tmpfilesdir}/credstore.conf
|
||||
%{_tmpfilesdir}/journal-nocow.conf
|
||||
@ -558,6 +588,9 @@
|
||||
%{_unitdir}/slices.target
|
||||
%{_unitdir}/smartcard.target
|
||||
%{_unitdir}/sockets.target
|
||||
%if %{without bootstrap}
|
||||
%{_unitdir}/sockets.target.wants/systemd-coredump.socket
|
||||
%endif
|
||||
%{_unitdir}/sockets.target.wants/systemd-journald-dev-log.socket
|
||||
%{_unitdir}/sockets.target.wants/systemd-journald.socket
|
||||
%{_unitdir}/sockets.target.wants/systemd-sysext.socket
|
||||
@ -601,6 +634,10 @@
|
||||
%{_unitdir}/systemd-binfmt.service
|
||||
%{_unitdir}/systemd-boot-check-no-failures.service
|
||||
%{_unitdir}/systemd-confext.service
|
||||
%if %{without bootstrap}
|
||||
%{_unitdir}/systemd-coredump.socket
|
||||
%{_unitdir}/systemd-coredump@.service
|
||||
%endif
|
||||
%{_unitdir}/systemd-exit.service
|
||||
%{_unitdir}/systemd-halt.service
|
||||
%{_unitdir}/systemd-hostnamed.service
|
||||
|
@ -40,6 +40,11 @@
|
||||
%ghost %attr(644, root, root) %{_prefix}/lib/udev/compat-symlink-generation
|
||||
%ghost %config(noreplace) %{_sysconfdir}/vconsole.conf
|
||||
%ghost %{_localstatedir}/lib/systemd/backlight
|
||||
# Main config files have been replaced in favor of drop-ins.
|
||||
%ghost %{_sysconfdir}/systemd/pstore.conf
|
||||
%ghost %{_sysconfdir}/systemd/sleep.conf
|
||||
%ghost %{_sysconfdir}/systemd/timesyncd.conf
|
||||
%ghost %{_sysconfdir}/udev/iocost.conf
|
||||
%{_bindir}/bootctl
|
||||
%if %{without bootstrap}
|
||||
%{_bindir}/kernel-install
|
||||
|
@ -276,6 +276,31 @@ drop_after_local_support() {
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# We have stopped shipping the main config files in /etc but we don't try to
|
||||
# clean them up automatically as it can have unexepected side effects
|
||||
# (bsc#1226415). Instead we simply suggest users to convert them (if they exist)
|
||||
# into drop-ins.
|
||||
#
|
||||
# Note: run at each package update
|
||||
#
|
||||
check_config_files () {
|
||||
config_files=(systemd/journald.conf systemd/logind.conf systemd/system.conf systemd/user.conf
|
||||
systemd/pstore.conf systemd/sleep.conf systemd/timesyncd.conf systemd/coredump.conf
|
||||
systemd/journal-remote.conf systemd/journal-upload.conf systemd/networkd.conf
|
||||
systemd/resolved.conf systemd/oomd.conf udev/iocost.conf)
|
||||
|
||||
for f in ${config_files[*]}; do
|
||||
[ -e /etc/$f ] || continue
|
||||
|
||||
cat >&2 <<EOF
|
||||
Main configuration files are deprecated in favor of drop-ins.
|
||||
Hence we suggest you to remove /etc/$f if it doesn't contain any customization or convert it into drop-in otherwise.
|
||||
For more details, please visit https://en.opensuse.org/Systemd#Configuration.
|
||||
EOF
|
||||
done
|
||||
}
|
||||
|
||||
r=0
|
||||
fix_machine_id_perms || r=1
|
||||
fix_pre_210 || r=1
|
||||
|
@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 24 14:36:21 UTC 2024 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- Don't automatically clean unmodified config files up (bsc#1226415)
|
||||
|
||||
Relying on the presence of .rpmsave for detecting unmodified main config files
|
||||
couldn't work as it created a time window in which some of the systemd
|
||||
services were restarted with no config file. That had the bad side effect to
|
||||
restart them with the upstream defaults, ignoring any user's customization.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 13:20:26 UTC 2024 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- testsuite: move a misplaced %endif
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 10:19:19 UTC 2024 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- Merge systemd-coredump back into the main package (bsc#1091684)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 10:12:01 UTC 2024 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- testsuite: only require the devel packages when pulling the dlopen'd
|
||||
dependencies (the libraries are dependencies of the devel packages).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 6 13:18:29 UTC 2024 - Franck Bui <fbui@suse.com>
|
||||
|
||||
|
125
systemd.spec
125
systemd.spec
@ -56,7 +56,6 @@
|
||||
%else
|
||||
%global mini %nil
|
||||
%bcond_without apparmor
|
||||
%bcond_without coredump
|
||||
%bcond_without homed
|
||||
%bcond_without importd
|
||||
%bcond_without journal_remote
|
||||
@ -81,20 +80,6 @@
|
||||
# value is independent of the build flavor.
|
||||
%bcond_without filetriggers
|
||||
|
||||
# We stopped shipping main config files in /etc but we have to restore any
|
||||
# config files that might have been backed up by rpm during the migration of the
|
||||
# main config files from /etc to /usr. This needs to be done in %%posttrans
|
||||
# because the .rpmsave files are created when the *old* package version is
|
||||
# removed. This is not needed by ALP and will be dropped from Factory near the
|
||||
# end of 2024.
|
||||
%define restore_rpmsave() \
|
||||
if [ -e %{_sysconfdir}/%{1}.rpmsave ] && [ ! -e %{_sysconfdir}/%{1} ]; then \
|
||||
echo >&2 "Restoring %{_sysconfdir}/%1. Please consider moving your customizations in a drop-in instead." \
|
||||
echo >&2 "For more details, visit https://en.opensuse.org/Systemd#Configuration." \
|
||||
mv -v %{_sysconfdir}/%{1}.rpmsave %{_sysconfdir}/%{1} || : \
|
||||
fi \
|
||||
%{nil}
|
||||
|
||||
Name: systemd%{?mini}
|
||||
URL: http://www.freedesktop.org/wiki/Software/systemd
|
||||
Version: %systemd_version
|
||||
@ -185,6 +170,8 @@ Obsoletes: nss-systemd < %{version}-%{release}
|
||||
Provides: nss-systemd = %{version}-%{release}
|
||||
Obsoletes: nss-myhostname < %{version}-%{release}
|
||||
Provides: nss-myhostname = %{version}-%{release}
|
||||
Provides: systemd-coredump = %{version}-%{release}
|
||||
Obsoletes: systemd-coredump < %{version}-%{release}
|
||||
Provides: systemd-logger = %{version}-%{release}
|
||||
Obsoletes: systemd-logger < %{version}-%{release}
|
||||
Provides: systemd-sysvinit = %{version}-%{release}
|
||||
@ -216,7 +203,6 @@ Source204: files.devel
|
||||
Source205: files.sysvcompat
|
||||
Source206: files.uefi-boot
|
||||
Source207: files.experimental
|
||||
Source208: files.coredump
|
||||
Source209: files.homed
|
||||
Source210: files.lang
|
||||
Source211: files.journal-remote
|
||||
@ -422,20 +408,6 @@ Requires: this-is-only-for-build-envs
|
||||
This package contains the dynamic library libudev, which provides
|
||||
access to udev device information
|
||||
|
||||
%if %{with coredump}
|
||||
%package coredump
|
||||
Summary: Systemd tools for coredump management
|
||||
License: LGPL-2.1-or-later
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%systemd_requires
|
||||
Provides: systemd:%{_bindir}/coredumpctl
|
||||
|
||||
%description coredump
|
||||
Systemd tools to store and manage coredumps.
|
||||
|
||||
Visit https://systemd.io/COREDUMP for more details.
|
||||
%endif
|
||||
|
||||
%if %{with sd_boot}
|
||||
%package boot
|
||||
Summary: A simple UEFI boot manager
|
||||
@ -545,6 +517,7 @@ BuildRequires: pkgconfig(libqrencode)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(pwquality)
|
||||
# These Recommends because some symbols of these libs are dlopen()ed by homed
|
||||
Recommends: libcryptsetup12
|
||||
Recommends: libfido2
|
||||
Recommends: libpwquality1
|
||||
Recommends: libqrencode4
|
||||
@ -619,11 +592,32 @@ Recommends: tpm2.0-tools
|
||||
%if %{with resolved}
|
||||
# Optional dep for knot needed by TEST-75-RESOLVED
|
||||
Recommends: knot
|
||||
%endif
|
||||
%if %{with selinux}
|
||||
# Optional deps needed by TEST-06-SELINUX (otherwise skipped)
|
||||
Recommends: selinux-policy-devel
|
||||
Recommends: selinux-policy-targeted
|
||||
%endif
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: attr
|
||||
Requires: binutils
|
||||
Requires: busybox-static
|
||||
Requires: cryptsetup
|
||||
Requires: dhcp-client
|
||||
Requires: dosfstools
|
||||
Requires: iproute2
|
||||
Requires: jq
|
||||
Requires: libcap-progs
|
||||
Requires: lz4
|
||||
Requires: make
|
||||
Requires: mtools
|
||||
Requires: netcat
|
||||
Requires: python3-pexpect
|
||||
Requires: qemu
|
||||
Requires: quota
|
||||
Requires: socat
|
||||
Requires: squashfs
|
||||
Requires: systemd-container
|
||||
# System users/groups that some tests rely on.
|
||||
Requires: group(bin)
|
||||
Requires: group(daemon)
|
||||
@ -636,49 +630,18 @@ Requires: user(nobody)
|
||||
# The following deps on libs are for test-dlopen-so whereas the pkgconfig ones
|
||||
# are used by test-funtions to find the libs on the host and install them in the
|
||||
# image, see install_missing_libraries() for details.
|
||||
Requires: libidn2
|
||||
Requires: pkgconfig(libfido2)
|
||||
Requires: pkgconfig(libidn2)
|
||||
%endif
|
||||
%if %{with experimental}
|
||||
Requires: libpwquality1
|
||||
Requires: libqrencode4
|
||||
Requires: pkgconfig(libqrencode)
|
||||
Requires: pkgconfig(pwquality)
|
||||
%endif
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: attr
|
||||
Requires: binutils
|
||||
Requires: busybox-static
|
||||
Requires: cryptsetup
|
||||
Requires: dhcp-client
|
||||
Requires: dosfstools
|
||||
Requires: iproute2
|
||||
Requires: jq
|
||||
Requires: libcap-progs
|
||||
Requires: libfido2
|
||||
Requires: libtss2-esys0
|
||||
Requires: libtss2-mu0
|
||||
Requires: libtss2-rc0
|
||||
Requires: lz4
|
||||
Requires: make
|
||||
Requires: mtools
|
||||
Requires: netcat
|
||||
Requires: python3-pexpect
|
||||
Requires: qemu
|
||||
Requires: quota
|
||||
Requires: socat
|
||||
Requires: squashfs
|
||||
Requires: systemd-container
|
||||
Requires: pkgconfig(libfido2)
|
||||
Requires: pkgconfig(tss2-esys)
|
||||
Requires: pkgconfig(tss2-mu)
|
||||
Requires: pkgconfig(tss2-rc)
|
||||
%if %{with sd_boot}
|
||||
Requires: systemd-boot
|
||||
%endif
|
||||
%if %{with coredump}
|
||||
Requires: systemd-coredump
|
||||
%endif
|
||||
%if %{with experimental}
|
||||
Requires: systemd-experimental
|
||||
%endif
|
||||
@ -848,7 +811,7 @@ for the C APIs.
|
||||
-Dzstd=%{disabled_with bootstrap} \
|
||||
\
|
||||
-Dapparmor=%{enabled_with apparmor} \
|
||||
-Dcoredump=%{when coredump} \
|
||||
-Dcoredump=%{when_not bootstrap} \
|
||||
-Dhomed=%{enabled_with homed} \
|
||||
-Dimportd=%{enabled_with importd} \
|
||||
-Dmachined=%{when machined} \
|
||||
@ -1154,12 +1117,6 @@ journalctl --update-catalog || :
|
||||
%systemd_postun_with_restart systemd-timedated.service
|
||||
%systemd_postun_with_restart systemd-userdbd.service
|
||||
|
||||
%posttrans
|
||||
%restore_rpmsave systemd/journald.conf
|
||||
%restore_rpmsave systemd/logind.conf
|
||||
%restore_rpmsave systemd/system.conf
|
||||
%restore_rpmsave systemd/user.conf
|
||||
|
||||
%pre -n udev%{?mini}
|
||||
# Units listed below can be enabled at installation accoding to their preset
|
||||
# setting.
|
||||
@ -1214,10 +1171,6 @@ fi
|
||||
|
||||
%posttrans -n udev%{?mini}
|
||||
%regenerate_initrd_posttrans
|
||||
%restore_rpmsave systemd/pstore.conf
|
||||
%restore_rpmsave systemd/sleep.conf
|
||||
%restore_rpmsave systemd/timesyncd.conf
|
||||
%restore_rpmsave udev/iocost.conf
|
||||
|
||||
%ldconfig_scriptlets -n libsystemd0%{?mini}
|
||||
%ldconfig_scriptlets -n libudev%{?mini}1
|
||||
@ -1244,16 +1197,6 @@ fi
|
||||
%{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || :
|
||||
%endif
|
||||
|
||||
%if %{with coredump}
|
||||
%post coredump
|
||||
%if %{without filetriggers}
|
||||
%sysusers_create systemd-coredump.conf
|
||||
|
||||
%posttrans coredump
|
||||
%restore_rpmsave systemd/coredump.conf
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with journal_remote}
|
||||
%pre journal-remote
|
||||
%systemd_pre systemd-journal-gatewayd.service
|
||||
@ -1278,10 +1221,6 @@ fi
|
||||
%systemd_postun_with_restart systemd-journal-gatewayd.service
|
||||
%systemd_postun_with_restart systemd-journal-remote.service
|
||||
%systemd_postun_with_restart systemd-journal-upload.service
|
||||
|
||||
%posttrans journal-remote
|
||||
%restore_rpmsave systemd/journal-remote.conf
|
||||
%restore_rpmsave systemd/journal-upload.conf
|
||||
%endif
|
||||
|
||||
%if %{with networkd} || %{with resolved}
|
||||
@ -1330,10 +1269,6 @@ fi
|
||||
%ldconfig
|
||||
%systemd_postun systemd-resolved.service
|
||||
%endif
|
||||
|
||||
%posttrans network
|
||||
%restore_rpmsave systemd/networkd.conf
|
||||
%restore_rpmsave systemd/resolved.conf
|
||||
%endif
|
||||
|
||||
%if %{with homed}
|
||||
@ -1392,9 +1327,6 @@ fi
|
||||
%postun experimental
|
||||
%systemd_postun systemd-homed.service
|
||||
%systemd_postun systemd-oomd.service systemd-oomd.socket
|
||||
|
||||
%posttrans experimental
|
||||
%restore_rpmsave systemd/oomd.conf
|
||||
%endif
|
||||
|
||||
# File trigger definitions
|
||||
@ -1440,11 +1372,6 @@ fi
|
||||
%{_libdir}/libudev.so.1
|
||||
%{_libdir}/libudev.so.1.7.*
|
||||
|
||||
%if %{with coredump}
|
||||
%files coredump
|
||||
%include %{SOURCE208}
|
||||
%endif
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files lang -f systemd.lang
|
||||
%include %{SOURCE210}
|
||||
|
Loading…
Reference in New Issue
Block a user