[rhel7] Install subscription-manager (#1026304)

Brian C. Lane bcl at redhat.com
Mon Nov 4 19:56:59 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

Only use the product-id plugin.

Resolves: rhbz#1026304
---
 share/runtime-cleanup.tmpl | 4 ++++
 share/runtime-install.tmpl | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl
index 52230ef..5e4043a 100644
--- a/share/runtime-cleanup.tmpl
+++ b/share/runtime-cleanup.tmpl
@@ -337,6 +337,10 @@ removefrom ${product.name}-logos /etc/*
 removefrom ${product.name}-logos /usr/share/icons/{Bluecurve,oxygen}/*
 removefrom ${product.name}-logos /usr/share/{firstboot,gnome-screensaver,kde4,pixmaps}/*
 
+## RHEL cleanups
+removefrom subscription-manager --allbut /etc/rhsm/* /usr/share/rhsm/* /var/log/rhsm/* \
+    /etc/yum/pluginconf.d/product-id.conf /usr/lib/yum-plugins/product-id.py
+
 ## cleanup_python_files()
 runcmd find ${root} -name "*.pyo" -type f -delete
 runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \;
diff --git a/share/runtime-install.tmpl b/share/runtime-install.tmpl
index 3458cdc..4d9fb43 100644
--- a/share/runtime-install.tmpl
+++ b/share/runtime-install.tmpl
@@ -141,5 +141,8 @@ installpkg gdisk
 ## yum plugins
 installpkg yum-langpacks
 
+## RHEL packages
+installpkg subscription-manager
+
 ## actually install all the requested packages
 run_pkg_transaction
-- 
1.8.3.1



More information about the anaconda-patches mailing list