update kernel version and add grub remake

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2023-05-31 13:14:50 +02:00
parent 6cdda80e86
commit bfbc5ea551
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%global __spec_install_pre %{___build_pre} %global __spec_install_pre %{___build_pre}


# Define the version of the Linux Kernel Archive tarball. # Define the version of the Linux Kernel Archive tarball.
%define LKAver 6.1.30 %define LKAver 6.1.31


# Define the buildid, if required. # Define the buildid, if required.
#define buildid . #define buildid .
@ -768,7 +768,8 @@ popd > /dev/null
if [ -x %{_sbindir}/weak-modules ] if [ -x %{_sbindir}/weak-modules ]
then then
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $? %{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?
fi\ fi
%{_sbin}/grub2-mkconfig -o /boot/grub2/grub.cfg




%post %post
@ -779,6 +780,7 @@ then
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $? %{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?
fi fi
/sbin/depmod -a %{KVRFA}%{?1:+%{1}} /sbin/depmod -a %{KVRFA}%{?1:+%{1}}
%{_sbin}/grub2-mkconfig -o /boot/grub2/grub.cfg




%preun %preun