X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=modify_rh_config.sh;h=e1f26d6afe372280ed8fd80662977c6be65e30b2;hb=refs%2Fheads%2Frhel6-mlab;hp=e26c77a7990c6cff9e208e004cad2bce2a23fe0d;hpb=afb01ca4e5d7bfad760f2d2edfe6a4d0a76e559d;p=linux-2.6.git diff --git a/modify_rh_config.sh b/modify_rh_config.sh index e26c77a79..e1f26d6af 100755 --- a/modify_rh_config.sh +++ b/modify_rh_config.sh @@ -7,9 +7,11 @@ sed -i -e "/\# CONFIG_KVM is not set/d" config-x86-generic-rhel sed -i -e "s,CONFIG_MODULE_SIG=y,CONFIG_MODULE_SIG=n,g" config-generic-rhel # Do not enable CONFIG_SYSFS_DEPRECATED options for Scientific Linux -if ! grep -q Scientific /etc/redhat-release; then +if ! grep -qiE "CentOS.*6.3|Scientific" /etc/redhat-release; then sed -i -e "s,# CONFIG_SYSFS_DEPRECATED is not set,CONFIG_SYSFS_DEPRECATED=y,g" config-generic sed -i -e "s,# CONFIG_SYSFS_DEPRECATED_V2 is not set,CONFIG_SYSFS_DEPRECATED_V2=y,g" config-generic fi -popd +sed -i -e "s,CONFIG_BUILD_DOCSRC=y,CONFIG_BUILD_DOCSRC=n,g" config-generic + +popd > /dev/null