Browse Source

correction in knerel-install bin location

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
6cdda80e86
  1. 4
      SPECS/kernel-6.1.spec

4
SPECS/kernel-6.1.spec

@ -764,7 +764,7 @@ popd > /dev/null @@ -764,7 +764,7 @@ popd > /dev/null
%posttrans
%if %{with_default}
#%{_sbindir}/new-kernel-pkg --package %{name} --mkinitrd --dracut --depmod --update %{version}-%{release}.%{_target_cpu} || exit $?
%{_sbindir}/kernel-install add %{KVRFA}%{?1:+%{1}} /lib/modules/%{KVRFA}%{?1:+%{1}}/vmlinuz || exit $?
%{_bindir}/kernel-install add %{KVRFA}%{?1:+%{1}} /lib/modules/%{KVRFA}%{?1:+%{1}}/vmlinuz || exit $?
if [ -x %{_sbindir}/weak-modules ]
then
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?
@ -773,7 +773,7 @@ fi\ @@ -773,7 +773,7 @@ fi\

%post
#%{_sbindir}/new-kernel-pkg --package %{name} --mkinitrd --dracut --depmod --install %{version}-%{release}.%{_target_cpu} || exit $?
%{_sbindir}/kernel-install add %{KVRFA}%{?1:+%{1}} /lib/modules/%{KVRFA}%{?1:+%{1}}/vmlinuz /lib/modules/%{KVRFA}%{?1:+%{1}}/System.map || exit $?
%{_bindir}/kernel-install add %{KVRFA}%{?1:+%{1}} /lib/modules/%{KVRFA}%{?1:+%{1}}/vmlinuz /lib/modules/%{KVRFA}%{?1:+%{1}}/System.map || exit $?
if [ -x %{_sbindir}/weak-modules ]
then
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?

Loading…
Cancel
Save