check weak-updates directory exists before using it
Resolves: RHEL-106279 Signed-off-by: Jan Stancek <jstancek@redhat.com>
This commit is contained in:
parent
65e12d75f3
commit
e820306e99
@ -1,6 +1,6 @@
|
||||
Name: kmod
|
||||
Version: 28
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Linux kernel module management utilities
|
||||
|
||||
License: GPLv2+
|
||||
@ -119,6 +119,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
|
||||
%{_libdir}/libkmod.so
|
||||
|
||||
%changelog
|
||||
* Mon Aug 18 2025 Jan Stancek <jstancek@redhat.com> - 28-11
|
||||
- check weak-updates directory exists before using it
|
||||
- Resolves: RHEL-106279
|
||||
|
||||
* Thu Aug 15 2024 Eugene Syromiatnikov <esyr@redhat.com> - 28-10
|
||||
- Fix issues discovered by static analysis
|
||||
- Resolves: RHEL-34073
|
||||
|
||||
@ -1083,7 +1083,7 @@ remove_kernel() {
|
||||
module_has_changed $weak_modules $remove_krel
|
||||
|
||||
# Remove everything beneath the weak-updates directory
|
||||
( cd "$weak_modules" && doit rm -rf * )
|
||||
( [ -d "$weak_modules" ] && cd "$weak_modules" && doit rm -rf * )
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
||||
Loading…
Reference in New Issue
Block a user