Revert "Create /etc/sysconfig/kernel if it's absent"

This reverts commit 75f7cb2046.
This commit is contained in:
Andrew Lukoshko 2023-08-08 07:46:46 +00:00
parent e7e939cd1c
commit 51d9463cdf

View File

@ -3071,10 +3071,6 @@ if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
[ -f /etc/sysconfig/kernel ]; then\
/bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
fi}\
if [ ! -f /etc/sysconfig/kernel ]; then\
echo DEFAULTKERNEL=kernel > /etc/sysconfig/kernel\
echo UPDATEDEFAULT=yes >> /etc/sysconfig/kernel\
fi\
mkdir -p %{_localstatedir}/lib/rpm-state/%{name}\
touch %{_localstatedir}/lib/rpm-state/%{name}/installing_core_%{KVERREL}%{?-v:+%{-v*}}\
%{nil}