diff --git a/diskimage-create/diskimage-create.sh b/diskimage-create/diskimage-create.sh index 99917cb7..c53d2abe 100755 --- a/diskimage-create/diskimage-create.sh +++ b/diskimage-create/diskimage-create.sh @@ -298,7 +298,7 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "hdp" ]; then if [ -z "$HADOOP_VERSION" -o "$HADOOP_VERSION" = "1" ]; then export centos_image_name_hdp_1_3=${centos_hdp_hadoop_1_image_name:-"centos-6_4-64-hdp-1-3"} # Elements to include in an HDP-based image - centos_elements_sequence="vm rhel hadoop-hdp disable-firewall redhat-lsb sahara-version source-repositories yum" + centos_elements_sequence="vm rhel hadoop-hdp disable-firewall redhat-lsb sahara-version source-repositories yum disable-selinux" if [ "$IMAGE_GENERATION_DEBUG_MODE" = "true" ]; then # enable the root-pwd element, for simpler local debugging of images centos_elements_sequence=$centos_elements_sequence" root-passwd" @@ -313,7 +313,7 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "hdp" ]; then if [ -z "$HADOOP_VERSION" -o "$HADOOP_VERSION" = "2" ]; then export centos_image_name_hdp_2_0=${centos_hdp_hadoop_2_image_name:-"centos-6_4-64-hdp-2-0"} # Elements to include in an HDP-based image - centos_elements_sequence="vm rhel hadoop-hdp disable-firewall redhat-lsb sahara-version source-repositories yum" + centos_elements_sequence="vm rhel hadoop-hdp disable-firewall redhat-lsb sahara-version source-repositories yum disable-selinux" if [ "$IMAGE_GENERATION_DEBUG_MODE" = "true" ]; then # enable the root-pwd element, for simpler local debugging of images centos_elements_sequence=$centos_elements_sequence" root-passwd" @@ -328,7 +328,7 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "hdp" ]; then if [ -z "$HADOOP_VERSION" -o "$HADOOP_VERSION" = "plain" ]; then export centos_image_name_plain=${centos_hdp_plain_image_name:-"centos-6_4-64-plain"} # Elements for a plain CentOS image that does not contain HDP or Apache Hadoop - centos_plain_elements_sequence="vm rhel redhat-lsb sahara-version yum" + centos_plain_elements_sequence="vm rhel redhat-lsb sahara-version yum disable-selinux" if [ "$IMAGE_GENERATION_DEBUG_MODE" = "true" ]; then # enable the root-pwd element, for simpler local debugging of images centos_elements_sequence=$centos_elements_sequence" root-passwd"