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:
parent
d30390aa9e
commit
fceb957ad2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user