From 802dc35a6178ea4fca3ac036da8049d74416fb85 Mon Sep 17 00:00:00 2001 From: Noam Angel Date: Sun, 10 Feb 2019 14:54:43 +0000 Subject: [PATCH] set rhel minor release Change-Id: I52a38c16dbbbe9fa1d4d6b6daffde01f63f664e6 --- .../os-refresh-config/pre-configure.d/06-rhel-registration | 3 +++ .../elements/rhel-common/pre-install.d/00-rhel-registration | 3 +++ 2 files changed, 6 insertions(+) diff --git a/diskimage_builder/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration b/diskimage_builder/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration index 83f394882..d38ac7806 100755 --- a/diskimage_builder/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration +++ b/diskimage_builder/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration @@ -124,6 +124,9 @@ case "${REG_METHOD:-}" in fi echo "Enabling repos: $repos" subscription-manager $repos + if [ -n "${REG_RELEASE:-}" ]; then + subscription-manager release --set=${REG_RELEASE} + fi ;; satellite) # Save an unmodified copy of the repo list for logging diff --git a/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration b/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration index b9a3f29bb..5f402a385 100755 --- a/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration +++ b/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration @@ -102,6 +102,9 @@ case "${REG_METHOD:-}" in subscription-manager repos --disable=\* echo "Enabling repos: $repos" subscription-manager $repos + if [ -n "${REG_RELEASE:-}" ]; then + subscription-manager release --set=${REG_RELEASE} + fi ;; satellite) # Save an unmodified copy of the repo list for logging