Line 37... |
Line 37... |
37 |
# Enable elrepo-kernel - disable elrepo
|
37 |
# Enable elrepo-kernel - disable elrepo
|
38 |
########################################################################
|
38 |
########################################################################
|
39 |
%post
|
39 |
%post
|
40 |
# enable elrepo-kernel
|
40 |
# enable elrepo-kernel
|
41 |
sed -i '/^\[elrepo-kernel\]/,/^enabled/ { s/^enabled=.*/enabled=1/ }' /etc/yum.repos.d/elrepo.repo
|
41 |
sed -i '/^\[elrepo-kernel\]/,/^enabled/ { s/^enabled=.*/enabled=1/ }' /etc/yum.repos.d/elrepo.repo
|
42 |
# disable elrepo, because elrepo-release-6-5.el6.elrepo requires kernel = 2.6.32
|
42 |
# disable elrepo, because elrepo-release-6rolling.el6.elrepo requires kernel = 2.6.32
|
43 |
sed -i '/^\[elrepo\]/,/^enabled/ { s/^enabled=.*/enabled=0/ }' /etc/yum.repos.d/elrepo.repo
|
43 |
sed -i '/^\[elrepo\]/,/^enabled/ { s/^enabled=.*/enabled=0/ }' /etc/yum.repos.d/elrepo.repo
|
44 |
%end
|
44 |
%end
|
45 |
|
45 |
|