mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00
Revert "Run depmod earlier"
filetriggerin got no input when initially installing the kernel (that is fixable by removing grep)
but was executed before %%post of nvidia package, I wanted wise versa. I will add depmod to that %%post.
This reverts commit 05930a16ec
.
This commit is contained in:
parent
05930a16ec
commit
587c0138c0
1 changed files with 4 additions and 5 deletions
|
@ -616,17 +616,16 @@ dracut -f %{initrd_path} %{kver_full}
|
|||
# File triggers from grub packages will handle this.
|
||||
#/usr/sbin/update-grub2
|
||||
|
||||
%filetriggerin -- %{_modulesdir}/%{kver_full}
|
||||
%transfiletriggerin -- %{_modulesdir}/%{kver_full}
|
||||
# Detect all modules, including ones inside kernel-module* packages
|
||||
if grep -qE '/.*\.ko(|\..*)' ; then
|
||||
depmod -a %{kver_full}
|
||||
fi
|
||||
|
||||
%filetriggerpostun -- %{_modulesdir}/%{kver_full}
|
||||
%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
|
||||
# Handle e.g. removal of kernel-module* packages
|
||||
if grep -qE '/.*\.ko(|\..*)' ; then
|
||||
depmod -a %{kver_full}
|
||||
fi
|
||||
# List of files is not available here (?)
|
||||
depmod -a %{kver_full}
|
||||
|
||||
%files -f %{kernel_files}
|
||||
%{_bootdir}/System.map-%{kver_full}
|
||||
|
|
Loading…
Add table
Reference in a new issue