!24 修复kmodtool安装ko时报错

Merge pull request !24 from wswsamao/mymaster
This commit is contained in:
openeuler-ci-bot 2020-08-21 16:11:23 +08:00 committed by Gitee
commit a506c4cd18
2 changed files with 4 additions and 1 deletions

View File

@ -119,6 +119,9 @@ mkdir -p %{buildroot}%{_fileattrsdir}
%{_rpmconfigdir}/macros.d/macros.kmp
%changelog
* Fri Aug 21 2020 Wang Shuo <wangshuo_1994@foxmail.com> - 30-14
- fix error message for kmodtool
* Thu Aug 13 2020 shenyangyang <shenyangyang4@huawei.com> - 30-13
- Add provides of perl-macros

View File

@ -39,7 +39,7 @@ def get_rpmtemplate(kmod_name,verrel):
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
print("%post -n kmod-" + kmod_name)
print("if [ -e /boot/System.map-" + verrel + "]; then")
print("if [ -e /boot/System.map-" + verrel + " ]; then")
print(" /sbin/depmod -aeF /boot/System.map-" + verrel +" " + verrel +"> /dev/null || :")
print("fi")
if (kmp !=""):