forked from rpms/kernel
Revert "Create /etc/sysconfig/kernel if it's absent"
This reverts commit 75f7cb2046
.
This commit is contained in:
parent
e7e939cd1c
commit
51d9463cdf
@ -3071,10 +3071,6 @@ if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
|
|||||||
[ -f /etc/sysconfig/kernel ]; then\
|
[ -f /etc/sysconfig/kernel ]; then\
|
||||||
/bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
|
/bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
|
||||||
fi}\
|
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}\
|
mkdir -p %{_localstatedir}/lib/rpm-state/%{name}\
|
||||||
touch %{_localstatedir}/lib/rpm-state/%{name}/installing_core_%{KVERREL}%{?-v:+%{-v*}}\
|
touch %{_localstatedir}/lib/rpm-state/%{name}/installing_core_%{KVERREL}%{?-v:+%{-v*}}\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
Loading…
Reference in New Issue
Block a user