From f2a08a810d7bcfd543fdd6a07ef2de609b4a076a3422702f084ccca356ace411 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Thu, 19 Aug 2021 11:41:18 +0000 Subject: [PATCH 1/3] Accepting request 913054 from home:mwilck:suse-module-tools - Update to version 16.0.7: * add kernel-sysctl.service and boot-sysctl.service for applying kernel-specific sysctl settings (bsc#1184804) * add support for zstd-compressed kernel modules OBS-URL: https://build.opensuse.org/request/show/913054 OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=120 --- _service | 1 + _servicedata | 2 +- suse-module-tools-16.0.6.obscpio | 3 --- suse-module-tools-16.0.7.obscpio | 3 +++ suse-module-tools.changes | 8 +++++++ suse-module-tools.obsinfo | 6 ++--- suse-module-tools.spec | 39 +++++++++++++++++++++++++++----- 7 files changed, 49 insertions(+), 13 deletions(-) delete mode 100644 suse-module-tools-16.0.6.obscpio create mode 100644 suse-module-tools-16.0.7.obscpio diff --git a/_service b/_service index 9e596b3..b7c9485 100644 --- a/_service +++ b/_service @@ -15,6 +15,7 @@ */suse-module-tools.spec suse-module-tools.spec + *.tar diff --git a/_servicedata b/_servicedata index b6d1cb5..f5c8921 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/openSUSE/suse-module-tools.git - 8d786330ba9510ca0793556e2b0df3de3e034e8a \ No newline at end of file + 78c25ddfe50b0f79b984e81a305fbf1336025ac3 \ No newline at end of file diff --git a/suse-module-tools-16.0.6.obscpio b/suse-module-tools-16.0.6.obscpio deleted file mode 100644 index 9cf971e..0000000 --- a/suse-module-tools-16.0.6.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09f5dcecc5140ea325b45752a2e69e8e1ca46fd84597d43dce685432296c16a3 -size 98827 diff --git a/suse-module-tools-16.0.7.obscpio b/suse-module-tools-16.0.7.obscpio new file mode 100644 index 0000000..ded797a --- /dev/null +++ b/suse-module-tools-16.0.7.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9c14a71fbe35e4e48abd2aacbdbf545ee957261aa706b737a0765fdf8bf77e8 +size 100875 diff --git a/suse-module-tools.changes b/suse-module-tools.changes index 8eb9773..1b00aa1 100644 --- a/suse-module-tools.changes +++ b/suse-module-tools.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Aug 19 11:31:32 UTC 2021 - Martin Wilck + +- Update to version 16.0.7: + * add kernel-sysctl.service and boot-sysctl.service for applying + kernel-specific sysctl settings (bsc#1184804) + * add support for zstd-compressed kernel modules + ------------------------------------------------------------------- Mon Jul 5 15:14:47 UTC 2021 - Martin Wilck diff --git a/suse-module-tools.obsinfo b/suse-module-tools.obsinfo index ceec59b..46a34d5 100644 --- a/suse-module-tools.obsinfo +++ b/suse-module-tools.obsinfo @@ -1,5 +1,5 @@ name: suse-module-tools -version: 16.0.6 -mtime: 1625260529 -commit: 8d786330ba9510ca0793556e2b0df3de3e034e8a +version: 16.0.7 +mtime: 1629372581 +commit: 78c25ddfe50b0f79b984e81a305fbf1336025ac3 diff --git a/suse-module-tools.spec b/suse-module-tools.spec index 8b9273e..7b69239 100644 --- a/suse-module-tools.spec +++ b/suse-module-tools.spec @@ -24,10 +24,17 @@ %if 0%{?suse_version} >= 1550 %global modprobe_dir /usr/lib/modprobe.d %global depmod_dir /usr/lib/depmod.d +%global with_kernel_sysctl 1 +# boot_sysctl may be dropped on TW when we can assume that nobody keeps +# kernel packages around that store sysctl files under /boot +%bcond_without boot_sysctl %else %global modprobe_dir /lib/modprobe.d %global depmod_dir /lib/depmod.d +%global with_boot_sysctl 1 %endif +%global sysctl_dropin %{_unitdir}/systemd-sysctl.service.d/50-kernel-uname_r.conf +%global systemd_units %{?with_boot_sysctl:boot-sysctl.service} %{?with_kernel_sysctl:kernel-sysctl.service} # List of legacy file systems to be blacklisted by default %global fs_blacklist adfs affs bfs befs cramfs efs erofs exofs freevxfs hfs hpfs jfs minix nilfs2 ntfs omfs qnx4 qnx6 sysv ufs @@ -38,7 +45,7 @@ %global modprobe_conf_rpmsave %(echo "%{modprobe_conf_files}" | sed 's,\\([^ ]*\\),%{_sysconfdir}/modprobe.d/\\1.conf.rpmsave,g') Name: suse-module-tools -Version: 16.0.6 +Version: 16.0.7 Release: 0 Summary: Configuration for module loading and SUSE-specific utilities for KMPs License: GPL-2.0-or-later @@ -46,6 +53,7 @@ Group: System/Base URL: https://github.com/openSUSE/suse-module-tools Source0: %{name}-%{version}.tar.xz Source1: %{name}.rpmlintrc +BuildRequires: pkgconfig(systemd) Requires: /usr/bin/grep Requires: /usr/bin/gzip Requires: /usr/bin/sed @@ -132,9 +140,17 @@ install -pm 755 "regenerate-initrd-posttrans" "%{buildroot}/usr/lib/module-init- install -d -m 755 "%{buildroot}%{_prefix}/bin" install -pm 755 kmp-install "%{buildroot}%{_bindir}/" -# systemd service to load /boot/sysctl.conf-`uname -r` +# systemd service(s) to load kernel-specific sysctl settings install -d -m 755 "%{buildroot}%{_unitdir}/systemd-sysctl.service.d" -install -pm 644 50-kernel-uname_r.conf "%{buildroot}%{_unitdir}/systemd-sysctl.service.d" +echo '[Unit]' >"%{buildroot}%{sysctl_dropin}" +%if %{with kernel_sysctl} +install -m 644 kernel-sysctl.service "%{buildroot}%{_unitdir}" +echo 'Wants=kernel-sysctl.service' >>"%{buildroot}%{sysctl_dropin}" +%endif +%if %{with boot_sysctl} +install -m 644 boot-sysctl.service "%{buildroot}%{_unitdir}" +echo 'Wants=boot-sysctl.service' >>"%{buildroot}%{sysctl_dropin}" +%endif # Ensure that the sg driver is loaded early (bsc#1036463) # Not needed in SLE11, where sg is loaded via udev rule. @@ -163,10 +179,8 @@ install $mod /usr/lib/module-init-tools/unblacklist $mod; /sbin/modprobe --ignor done %endif -%post -exit 0 - %pre +%service_add_pre %{systemd_units} # Avoid restoring old .rpmsave files in %posttrans for f in %{modprobe_conf_rpmsave}; do if [ -f ${f} ]; then @@ -179,6 +193,18 @@ if [ -f %{_sysconfdir}/depmod.d/00-system.conf.rpmsave ]; then fi exit 0 +%post +%service_add_post %{systemd_units} +exit 0 + +%preun +%service_del_preun %{systemd_units} +exit 0 + +%postun +%service_del_postun_without_restart %{systemd_units} +exit 0 + %posttrans # If the user had modified any of the configuration files installed under # /etc, they'll now be renamed to .rpmsave files. Restore them. @@ -208,6 +234,7 @@ exit 0 %{_bindir}/kmp-install /usr/lib/module-init-tools %exclude /usr/lib/module-init-tools/weak-modules +%{_unitdir}/*.service %{_unitdir}/systemd-sysctl.service.d %{_modulesloaddir} %ifarch ppc64 ppc64le From 915b0e79525693b02165fb8dc816672390e48aedb36b8de42a60f192d89d19d0 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Thu, 19 Aug 2021 18:56:26 +0000 Subject: [PATCH 2/3] Accepting request 913205 from home:mwilck:suse-module-tools - Update to version 16.0.8: * fix problem that initrd may not be rebuilt after installing kernel-$flavor-extra (bsc#1189441) OBS-URL: https://build.opensuse.org/request/show/913205 OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=121 --- _servicedata | 2 +- suse-module-tools-16.0.7.obscpio | 3 --- suse-module-tools-16.0.8.obscpio | 3 +++ suse-module-tools.changes | 7 +++++++ suse-module-tools.obsinfo | 6 +++--- suse-module-tools.spec | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) delete mode 100644 suse-module-tools-16.0.7.obscpio create mode 100644 suse-module-tools-16.0.8.obscpio diff --git a/_servicedata b/_servicedata index f5c8921..f9eae77 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/openSUSE/suse-module-tools.git - 78c25ddfe50b0f79b984e81a305fbf1336025ac3 \ No newline at end of file + 1d743d55d52b90fcc7343253f3b7319b44f3f612 \ No newline at end of file diff --git a/suse-module-tools-16.0.7.obscpio b/suse-module-tools-16.0.7.obscpio deleted file mode 100644 index ded797a..0000000 --- a/suse-module-tools-16.0.7.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9c14a71fbe35e4e48abd2aacbdbf545ee957261aa706b737a0765fdf8bf77e8 -size 100875 diff --git a/suse-module-tools-16.0.8.obscpio b/suse-module-tools-16.0.8.obscpio new file mode 100644 index 0000000..737acdf --- /dev/null +++ b/suse-module-tools-16.0.8.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ef08c461cebe39a5a46a46bb0c642a834ed87734705c6eae27a82086e157769 +size 100875 diff --git a/suse-module-tools.changes b/suse-module-tools.changes index 1b00aa1..806a128 100644 --- a/suse-module-tools.changes +++ b/suse-module-tools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 19 18:53:24 UTC 2021 - Martin Wilck + +- Update to version 16.0.8: + * fix problem that initrd may not be rebuilt after installing + kernel-$flavor-extra (bsc#1189441) + ------------------------------------------------------------------- Thu Aug 19 11:31:32 UTC 2021 - Martin Wilck diff --git a/suse-module-tools.obsinfo b/suse-module-tools.obsinfo index 46a34d5..8cd57fc 100644 --- a/suse-module-tools.obsinfo +++ b/suse-module-tools.obsinfo @@ -1,5 +1,5 @@ name: suse-module-tools -version: 16.0.7 -mtime: 1629372581 -commit: 78c25ddfe50b0f79b984e81a305fbf1336025ac3 +version: 16.0.8 +mtime: 1629387147 +commit: 1d743d55d52b90fcc7343253f3b7319b44f3f612 diff --git a/suse-module-tools.spec b/suse-module-tools.spec index 7b69239..aa9f080 100644 --- a/suse-module-tools.spec +++ b/suse-module-tools.spec @@ -45,7 +45,7 @@ %global modprobe_conf_rpmsave %(echo "%{modprobe_conf_files}" | sed 's,\\([^ ]*\\),%{_sysconfdir}/modprobe.d/\\1.conf.rpmsave,g') Name: suse-module-tools -Version: 16.0.7 +Version: 16.0.8 Release: 0 Summary: Configuration for module loading and SUSE-specific utilities for KMPs License: GPL-2.0-or-later From 420ca30daee41a209b1733aa7474dd695e4fcb12fce03ddb97d619e85825ae9f Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Fri, 20 Aug 2021 09:07:04 +0000 Subject: [PATCH 3/3] Accepting request 913286 from home:mwilck:suse-module-tools - Update to version 16.0.8+1: * spec file: fix BuildRequires OBS-URL: https://build.opensuse.org/request/show/913286 OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=122 --- _servicedata | 2 +- suse-module-tools-16.0.8+1.obscpio | 3 +++ suse-module-tools-16.0.8.obscpio | 3 --- suse-module-tools.changes | 6 ++++++ suse-module-tools.obsinfo | 6 +++--- suse-module-tools.spec | 4 ++-- 6 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 suse-module-tools-16.0.8+1.obscpio delete mode 100644 suse-module-tools-16.0.8.obscpio diff --git a/_servicedata b/_servicedata index f9eae77..377a535 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/openSUSE/suse-module-tools.git - 1d743d55d52b90fcc7343253f3b7319b44f3f612 \ No newline at end of file + ec6c895407f494c886dd4de6ef58e5d2641f0962 \ No newline at end of file diff --git a/suse-module-tools-16.0.8+1.obscpio b/suse-module-tools-16.0.8+1.obscpio new file mode 100644 index 0000000..e82b39e --- /dev/null +++ b/suse-module-tools-16.0.8+1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b15abb5d60d3832fb7d079aacb3b08440eb48ece4e964b4f6d29c669c4ff4cf +size 101387 diff --git a/suse-module-tools-16.0.8.obscpio b/suse-module-tools-16.0.8.obscpio deleted file mode 100644 index 737acdf..0000000 --- a/suse-module-tools-16.0.8.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ef08c461cebe39a5a46a46bb0c642a834ed87734705c6eae27a82086e157769 -size 100875 diff --git a/suse-module-tools.changes b/suse-module-tools.changes index 806a128..53c1ae0 100644 --- a/suse-module-tools.changes +++ b/suse-module-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 20 09:05:54 UTC 2021 - Martin Wilck + +- Update to version 16.0.8+1: + * spec file: fix BuildRequires + ------------------------------------------------------------------- Thu Aug 19 18:53:24 UTC 2021 - Martin Wilck diff --git a/suse-module-tools.obsinfo b/suse-module-tools.obsinfo index 8cd57fc..029222c 100644 --- a/suse-module-tools.obsinfo +++ b/suse-module-tools.obsinfo @@ -1,5 +1,5 @@ name: suse-module-tools -version: 16.0.8 -mtime: 1629387147 -commit: 1d743d55d52b90fcc7343253f3b7319b44f3f612 +version: 16.0.8+1 +mtime: 1629449992 +commit: ec6c895407f494c886dd4de6ef58e5d2641f0962 diff --git a/suse-module-tools.spec b/suse-module-tools.spec index aa9f080..032f0a3 100644 --- a/suse-module-tools.spec +++ b/suse-module-tools.spec @@ -45,7 +45,7 @@ %global modprobe_conf_rpmsave %(echo "%{modprobe_conf_files}" | sed 's,\\([^ ]*\\),%{_sysconfdir}/modprobe.d/\\1.conf.rpmsave,g') Name: suse-module-tools -Version: 16.0.8 +Version: 16.0.8+1 Release: 0 Summary: Configuration for module loading and SUSE-specific utilities for KMPs License: GPL-2.0-or-later @@ -53,7 +53,7 @@ Group: System/Base URL: https://github.com/openSUSE/suse-module-tools Source0: %{name}-%{version}.tar.xz Source1: %{name}.rpmlintrc -BuildRequires: pkgconfig(systemd) +BuildRequires: systemd-rpm-macros Requires: /usr/bin/grep Requires: /usr/bin/gzip Requires: /usr/bin/sed