2
0

Accepting request 644922 from home:mwilck:branches:Base:System

- Update to version 15.0+git20181026.9b7bf86:
  * spec file: merge OBS bot changes

- Update to version 15.0+git20181026.4f4ddf9:
  * unsupported modules: new logic for Code 15 and newer
    (bsc#1111183)
  - SLES: allow unsupported modules only if SLE WE is installed
    (new package suse-module-tools-we overrides policy)
  - change update policy for 10-unsupported-modules.conf to
    "replace"
  - Always allow unsupported modules on Leap 15 and Factory
  - No change for releases below 15

- Update to version 15.0+git20181026.3380c9b:
  * spec file: update SPDX license to new format
  * spec file: fix rpmlint warning about macro in comment
  * spec file: use %license
  * spec file: fix Requires: tags

OBS-URL: https://build.opensuse.org/request/show/644922
OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=42
This commit is contained in:
Martin Wilck 2018-10-26 17:17:37 +00:00 committed by Git OBS Bridge
parent a2ca2c9d3e
commit 0768a38931
5 changed files with 99 additions and 20 deletions

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/openSUSE/suse-module-tools.git</param>
<param name="changesrevision">e511cd8b41f0246a32d06972b2ccd39786deb392</param></service></servicedata>
<param name="changesrevision">9b7bf86003dd076b170de97e977a6c00e889fe81</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f1a6f4240c84fca613b3c9951f874720b8dc936654b25bfb1104adc4485b8edf
size 26916

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:608d4af88c3d210b83d62b546f463cba95e76620f29c38a4b6cd4ce87dbefaae
size 26416

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Fri Oct 26 16:10:51 UTC 2018 - mwilck@suse.com
- Update to version 15.0+git20181026.9b7bf86:
* spec file: merge OBS bot changes
-------------------------------------------------------------------
Fri Oct 26 15:45:07 UTC 2018 - mwilck@suse.com
- Update to version 15.0+git20181026.4f4ddf9:
* unsupported modules: new logic for Code 15 and newer
(bsc#1111183)
- SLES: allow unsupported modules only if SLE WE is installed
(new package suse-module-tools-we overrides policy)
- change update policy for 10-unsupported-modules.conf to
"replace"
- Always allow unsupported modules on Leap 15 and Factory
- No change for releases below 15
-------------------------------------------------------------------
Fri Oct 26 15:12:09 UTC 2018 - mwilck@suse.com
- Update to version 15.0+git20181026.3380c9b:
* spec file: update SPDX license to new format
* spec file: fix rpmlint warning about macro in comment
* spec file: use %license
* spec file: fix Requires: tags
-------------------------------------------------------------------
Fri Oct 26 14:34:25 UTC 2018 - mwilck@suse.com

View File

@ -17,7 +17,7 @@
Name: suse-module-tools
Version: 15.0+git20181026.e511cd8
Version: 15.0+git20181026.9b7bf86
Release: 0
Summary: Configuration for module loading and SUSE-specific utilities for KMPs
License: GPL-2.0-or-later
@ -25,18 +25,14 @@ Group: System/Base
Url: https://github.com/openSUSE/suse-module-tools
Source0: %{name}-%{version}.tar.xz
Requires: /sbin/mkinitrd
Requires: binutils
Requires: coreutils
Requires: findutils
Requires: grep
Requires: gzip
Requires: kmod-compat
# could use eu-nm from elfutils too but it is higher in dep-chanin
Requires(post): binutils
# nm and rpmsort (rpm) are required by the weak-modules script which is invoked
# in post, it also requires getopt (coreutils) and sed
Requires(post): coreutils
# for grepping /etc/os-release
Requires(post): grep
Requires(post): rpm
Requires(post): sed
Requires: rpm
Requires: sed
%description
This package contains helper scripts for KMP installation and
@ -44,6 +40,23 @@ uninstallation, as well as default configuration files for depmod and
modprobe. These utilities are provided by kmod-compat or
module-init-tools, whichever implementation you choose to install.
%if 0%{?sle_version} >= 150000
%if 0%{?is_opensuse} == 0
%package we
Summary: Configuration module for Workstation Extension
Group: System/Base
Requires: %{name} >= %{version}
Supplements: kernel-default-extra
%description we
This package contains a configuration file that allows loading
unsupported kernel modules. This is necessary to load modules
from the kernel-default-extra package from the SUSE Linux Enterprise
Workstation Extension module.
%endif
%endif
%prep
%setup -q
@ -59,6 +72,15 @@ fi
install -d -m 755 "%{buildroot}%{_sysconfdir}/modprobe.d"
install -pm644 "10-unsupported-modules.conf" \
"%{buildroot}%{_sysconfdir}/modprobe.d/"
%if 0%{?sle_version} >= 150000
%if 0%{?is_opensuse} == 0
cat >"%{buildroot}%{_sysconfdir}/modprobe.d/20-unsupported-modules-we.conf" <<EOF
# This overrides the default from 10-unsupported-modules.conf
# Necessary to load modules from kernel-default-extra
allow_unsupported_modules 1
EOF
%endif
%endif
install -pm644 00-system.conf "%{buildroot}%{_sysconfdir}/modprobe.d/"
install -pm644 modprobe.conf/modprobe.conf.local "%{buildroot}%{_sysconfdir}/modprobe.d/99-local.conf"
install -d -m 755 "%{buildroot}%{_sysconfdir}/depmod.d"
@ -87,6 +109,19 @@ install -d -m 755 "%{buildroot}%{_libexecdir}/systemd/system/systemd-sysctl.serv
install -pm 644 50-kernel-uname_r.conf "%{buildroot}%{_libexecdir}/systemd/system/systemd-sysctl.service.d"
%post
%if 0%{?sle_version} >= 150000
# Delete obsolete unsupported-modules file from SLE11
rm -f %{_sysconfdir}/modprobe.d/unsupported-modules
%if 0%{?is_opensuse} == 1
# Disallowing unsupported modules on openSUSE is pointless.
allow=1
%else
# On SLE15, unsupported modules are disallowed unless the WE
# module is installed. We deliberately reset this on update.
allow=0
%endif
%else
# Logic for releases below CODE 15
test_allow_on_install()
{
# configure handling of unsupported modules
@ -118,7 +153,7 @@ test_allow_on_install()
return
fi
# or if the installer already loaded some unsupported modules
# (see TAINT_NO_SUPPORT in %{_prefix}/src/linux/include/linux/kernel.h)
# (see TAINT_NO_SUPPORT in /etc/src/linux/include/linux/kernel.h)
tainted=$(cat /proc/sys/kernel/tainted 2>/dev/null || echo 0)
if test $((tainted & (1<<30))) != 0; then
allow=1
@ -130,22 +165,30 @@ if test -e %{_sysconfdir}/modprobe.d/unsupported-modules; then
mv -f %{_sysconfdir}/modprobe.d/unsupported-modules \
%{_sysconfdir}/modprobe.d/10-unsupported-modules.conf
fi
if test -e %{_sysconfdir}/modprobe.conf.local; then
mv -f %{_sysconfdir}/modprobe.conf.local \
%{_sysconfdir}/modprobe.d/99-local.conf
fi
test_allow_on_install "$@"
%endif
if test "$allow" = "0"; then
sed -ri 's/^( *allow_unsupported_modules *) 1/\1 0/' \
%{_sysconfdir}/modprobe.d/10-unsupported-modules.conf
fi
# upgrade from old locations
if test -e %{_sysconfdir}/modprobe.conf.local; then
mv -f %{_sysconfdir}/modprobe.conf.local \
%{_sysconfdir}/modprobe.d/99-local.conf
fi
%files
%defattr(-,root,root)
%doc LICENSE README.SUSE
%license LICENSE
%doc README.SUSE
%dir %{_sysconfdir}/modprobe.d
%config %{_sysconfdir}/modprobe.d/00-system.conf
%if 0%{?sle_version} >= 150000
%config %{_sysconfdir}/modprobe.d/10-unsupported-modules.conf
%else
%config(noreplace) %{_sysconfdir}/modprobe.d/10-unsupported-modules.conf
%endif
%config(noreplace) %{_sysconfdir}/modprobe.d/99-local.conf
%dir %{_sysconfdir}/depmod.d
%config %{_sysconfdir}/depmod.d/00-system.conf
@ -156,4 +199,12 @@ fi
%{_libexecdir}/module-init-tools
%{_libexecdir}/systemd/system/systemd-sysctl.service.d
%if 0%{?sle_version} >= 150000
%if 0%{?is_opensuse} == 0
%files we
%defattr(-,root,root)
%config /etc/modprobe.d/20-unsupported-modules-we.conf
%endif
%endif
%changelog