update kernel version and add grub remake
Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>master
parent
6cdda80e86
commit
bfbc5ea551
|
|
@ -1,7 +1,7 @@
|
|||
%global __spec_install_pre %{___build_pre}
|
||||
|
||||
# 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 buildid .
|
||||
|
|
@ -768,7 +768,8 @@ popd > /dev/null
|
|||
if [ -x %{_sbindir}/weak-modules ]
|
||||
then
|
||||
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?
|
||||
fi\
|
||||
fi
|
||||
%{_sbin}/grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
|
||||
%post
|
||||
|
|
@ -779,6 +780,7 @@ then
|
|||
%{_sbindir}/weak-modules --add-kernel %{KVRFA}%{?1:+%{1}} || exit $?
|
||||
fi
|
||||
/sbin/depmod -a %{KVRFA}%{?1:+%{1}}
|
||||
%{_sbin}/grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
|
||||
%preun
|
||||
|
|
|
|||
Loading…
Reference in New Issue