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
This commit is contained in:
Brian C. Lane 2014-02-20 16:27:10 -08:00
parent d30390aa9e
commit fceb957ad2
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,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