Browse Source

go back to kernel new pkg

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

12
SPECS/kernel-6.1.spec

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




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




%preun %preun
#%{_sbindir}/new-kernel-pkg --rminitrd --rmmoddep --remove %{version}-%{release}.%{_target_cpu} || exit $? %{_sbindir}/new-kernel-pkg --rminitrd --rmmoddep --remove %{version}-%{release}.%{_target_cpu} || exit $?
%{_bindir}/kernel-install remove %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $? #%{_bindir}/kernel-install remove %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $?
if [ -x %{_sbindir}/weak-modules ] if [ -x %{_sbindir}/weak-modules ]
then then
%{_sbindir}/weak-modules --remove-kernel %{KVERREL}%{?1:+%{1}} || exit $? %{_sbindir}/weak-modules --remove-kernel %{KVERREL}%{?1:+%{1}} || exit $?

Loading…
Cancel
Save