<NME> README.md
<BEF> ADDFILE
<MSG> Adds RHEL common element

This element contains the installation steps common to RHEL
operating system versions.

Change-Id: I37cce0bd5b5d31525f1335ecd416be570d36ad61

<DFF> @@ -0,0 +1,1 @@
+This element contains the common installation steps between RHEL os releases.

{'commit': 'diff --git a/elements/rhel-common/README.md b/elements/rhel-common/README.md\nnew file mode 100644\nindex 00000000..64eb571b\n--- /dev/null\n+++ b/elements/rhel-common/README.md\n@@ -0,0 +1 @@\n+This element contains the common installation steps between RHEL os releases.\ndiff --git a/elements/rhel/pre-install.d/00-rhsm b/elements/rhel-common/pre-install.d/00-rhsm\nsimilarity index 90%\nrename from elements/rhel/pre-install.d/00-rhsm\nrename to elements/rhel-common/pre-install.d/00-rhsm\nindex db1dd24d..274244a5 100755\n--- a/elements/rhel/pre-install.d/00-rhsm\n+++ b/elements/rhel-common/pre-install.d/00-rhsm\n@@ -44,7 +44,11 @@ if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ] ; then\n             subscription-manager attach --pool $DIB_RHSM_POOL\n         fi\n         # optional repo required for diskimage-builder dependency\n-        repos="--enable rhel-6-server-optional-rpms"\n+        if [ "$DISTRO_NAME" == "rhel7" ]; then\n+            repos="--enable rhel-7-server-optional-rpms"\n+        else\n+            repos="--enable rhel-6-server-optional-rpms"\n+        fi\n         if [[ -n "$DIB_RHSM_REPOS" ]]; then\n             for repo in $DIB_RHSM_REPOS; do\n                 repos="$repos --enable $repo"\ndiff --git a/elements/rhel/pre-install.d/10-rhel-blacklist b/elements/rhel-common/pre-install.d/10-rhel-blacklist\nsimilarity index 100%\nrename from elements/rhel/pre-install.d/10-rhel-blacklist\nrename to elements/rhel-common/pre-install.d/10-rhel-blacklist\ndiff --git a/elements/rhel/element-deps b/elements/rhel/element-deps\nindex e5228c33..66b94cc8 100644\n--- a/elements/rhel/element-deps\n+++ b/elements/rhel/element-deps\n@@ -1,4 +1,5 @@\n cache-url\n dib-run-parts\n+rhel-common\n rpm-distro\n yum\ndiff --git a/elements/rhel7/element-deps b/elements/rhel7/element-deps\nindex c6e5925f..4f33c20e 100644\n--- a/elements/rhel7/element-deps\n+++ b/elements/rhel7/element-deps\n@@ -1,6 +1,7 @@\n cache-url\n dib-run-parts\n redhat-common\n+rhel-common\n rpm-distro\n source-repositories\n yum\n', 'commit_subject': 'Adds RHEL common element', 'repo_name': 'openstack/diskimage-builder', 'committer': {'name': 'Ryan Brady', 'email': '22f55a96bef9ac7766faa2ab605d3009bbf589a0@redhat.com', 'time_sec': '1406312223', 'tz_offset': '-240', 'date': {'seconds': '1406312223'}}, 'commit_tree': 'f6137f1ab45323a1bf41eb586103182a9dfd333a', 'commit_message': 'Adds RHEL common element\n\nThis element contains the installation steps common to RHEL\noperating system versions.\n\nChange-Id: I37cce0bd5b5d31525f1335ecd416be570d36ad61\n', 'language_name': 'Python', 'license': 'apache-2.0', 'hunks': '@@ -0,0 +1,1 @@\n+This element contains the common installation steps between RHEL os releases.\n', 'addition_count': 1, 'deletion_count': 0, 'src_file': '/dev/null', 'tgt_file': 'b/elements/rhel-common/README.md', 'file_extension': '.md', 'before_file': 'ADDFILE', 'message': 'Adds RHEL common element\n\nThis element contains the installation steps common to RHEL\noperating system versions.\n\nChange-Id: I37cce0bd5b5d31525f1335ecd416be570d36ad61\n', 'author_name': 'Ryan Brady', 'lang': 'md'}