From d9eda042f8e2be3c60eb909e4e2dcd16af31db2a Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 20 Feb 2014 16:27:10 -0800 Subject: [PATCH] livemedia-creator: Set the product and release version env variables (#1067746) 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 a82d38f2..903488e4 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