[master/rhel7] livemedia-creator: Set the product and release version env variables (#1067746)
Vratislav Podzimek
vpodzime at redhat.com
Fri Feb 21 07:18:56 UTC 2014
On Thu, 2014-02-20 at 16:43 -0800, Brian C. Lane wrote:
> 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
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list