|
|
@ -146,7 +146,9 @@ Requires(pre): %{kernel_prereq} |
|
|
|
Requires(pre): %{initrd_prereq} |
|
|
|
Requires(pre): %{initrd_prereq} |
|
|
|
Requires(pre): linux-firmware >= 20100806-2 |
|
|
|
Requires(pre): linux-firmware >= 20100806-2 |
|
|
|
Requires(post): %{_sbindir}/new-kernel-pkg |
|
|
|
Requires(post): %{_sbindir}/new-kernel-pkg |
|
|
|
|
|
|
|
Requires(post): %{_bindir}/kernel-install |
|
|
|
Requires(preun): %{_sbindir}/new-kernel-pkg |
|
|
|
Requires(preun): %{_sbindir}/new-kernel-pkg |
|
|
|
|
|
|
|
Requires(preun): %{_bindir}/kernel-install |
|
|
|
# We can't let RPM do the dependencies automatic because it'll then pick up |
|
|
|
# We can't let RPM do the dependencies automatic because it'll then pick up |
|
|
|
# a correct but undesirable perl dependency from the module headers which |
|
|
|
# a correct but undesirable perl dependency from the module headers which |
|
|
|
# isn't required for the kernel proper to function |
|
|
|
# isn't required for the kernel proper to function |
|
|
@ -750,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 $? |
|
|
|
#/bin/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 $? |
|
|
@ -759,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 $? |
|
|
|
#/bin/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 $? |
|
|
@ -769,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 $? |
|
|
|
#/bin/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 $? |
|
|
|