!42 [sync] PR-39: weak-modules: fix a bug when using weak_modules without '$'
From: @openeuler-sync-bot Reviewed-by: @wangbin224 Signed-off-by: @wangbin224
This commit is contained in:
commit
b7716308f7
@ -1,6 +1,6 @@
|
|||||||
Name: kmod
|
Name: kmod
|
||||||
Version: 27
|
Version: 27
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Kernel module management
|
Summary: Kernel module management
|
||||||
# GPLv2+ is used by programs, LGPLv2+ is used for libraries.
|
# GPLv2+ is used by programs, LGPLv2+ is used for libraries.
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
@ -123,8 +123,11 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
|
|||||||
%doc TODO NEWS README
|
%doc TODO NEWS README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 13 2021 YangYanchao <yangyanchao6@huawei.com> - 27-10
|
||||||
|
- weak-modules: fix a bug when using weak_modules without '$'
|
||||||
|
|
||||||
* Fri Aug 13 2021 YangYanchao <yangyanchao6@huawei.com> - 27-9
|
* Fri Aug 13 2021 YangYanchao <yangyanchao6@huawei.com> - 27-9
|
||||||
- weak-modules: disable an error when /lib/modules/`uname -r`/weak-modules does not exist
|
- weak-modules: fix a bug when /lib/modules/`uname -r`/weak-update does not exist
|
||||||
|
|
||||||
* Wed Apr 7 2021 YangYanchao <yangyanchao6@huawei.com> - 27-8
|
* Wed Apr 7 2021 YangYanchao <yangyanchao6@huawei.com> - 27-8
|
||||||
- backport weak-modules script from fedora
|
- backport weak-modules script from fedora
|
||||||
|
|||||||
@ -1078,7 +1078,7 @@ remove_kernel() {
|
|||||||
module_has_changed $weak_modules $remove_krel
|
module_has_changed $weak_modules $remove_krel
|
||||||
|
|
||||||
# Remove everything beneath the weak-updates directory
|
# Remove everything beneath the weak-updates directory
|
||||||
if [ -d "weak_modules" ]; then
|
if [ -d "$weak_modules" ]; then
|
||||||
( cd "$weak_modules" && doit rm -rf * )
|
( cd "$weak_modules" && doit rm -rf * )
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user