[master/rhel7] livemedia-creator: Set the product and release version env variables (#1067746)

Brian C. Lane bcl at redhat.com
Fri Feb 21 00:43:03 UTC 2014


When doing an image install there is no .buildstamp file to pull the
information from so use the cmdline variables (or their defaults) and
pass them to anaconda in the environment.

Resolves: rhbz#1067746
---
 src/sbin/livemedia-creator | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index a82d38f..903488e 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -558,6 +558,9 @@ def novirt_install(opts, disk_img, disk_size, repo_url):
         # Create the sparse image
         mksparse(disk_img, disk_size * 1024**3)
 
+    # Make sure anaconda has the right product and release
+    os.environ["ANACONDA_PRODUCTNAME"] = opts.project
+    os.environ["ANACONDA_PRODUCTVERSION"] = opts.releasever
     rc = execWithRedirect("anaconda", args)
 
     # Move the anaconda logs over to a log directory
-- 
1.8.5.3



More information about the anaconda-patches mailing list