check weak-updates directory exists before using it
Resolves: RHEL-109793 Signed-off-by: Jan Stancek <jstancek@redhat.com>
This commit is contained in:
parent
6f7e91fd05
commit
5275fcaf0f
@ -16,7 +16,7 @@
|
||||
|
||||
Name: kmod
|
||||
Version: 31
|
||||
Release: 11%{?dist}
|
||||
Release: 12%{?dist}
|
||||
Summary: Linux kernel module management utilities
|
||||
|
||||
# https://docs.fedoraproject.org/en-US/legal/license-field/#_no_effective_license_analysis
|
||||
@ -196,6 +196,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
|
||||
%{_libdir}/libkmod.so
|
||||
|
||||
%changelog
|
||||
* Tue Aug 19 2025 Jan Stancek <jstancek@redhat.com> - 31-12
|
||||
- check weak-updates directory exists before using it
|
||||
- Resolves: RHEL-109793
|
||||
|
||||
* Tue Jan 14 2025 Eugene Syromiatnikov <esyr@redhat.com> - 31-11
|
||||
- Enable zstd compression support for initramfs in weak-modules
|
||||
- Resolves: RHEL-74288
|
||||
|
||||
@ -1087,7 +1087,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