[lorax-master/rhel7] Use string for releasever not int (#1067746)

David Shea dshea at redhat.com
Fri Feb 28 22:08:09 UTC 2014


On 02/28/2014 04:51 PM, Brian C. Lane wrote:
> environmental variables need to be strings and there is no compelling
> reason to force this to an int.
>
> Related: rhbz#1067746
> ---
>   src/sbin/livemedia-creator | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
> index ee91855..324edc2 100755
> --- a/src/sbin/livemedia-creator
> +++ b/src/sbin/livemedia-creator
> @@ -393,7 +393,7 @@ class KernelInfo(object):
>   
>   def make_appliance(disk_img, name, template, outfile, networks=None, ram=1024,
>                      vcpus=1, arch=None, title="Linux", project="Linux",
> -                   releasever=17):
> +                   releasever="7.0"):
>       """
>       Generate an appliance description file
>   
> @@ -823,7 +823,7 @@ if __name__ == '__main__':
>                            help="Substituted for @TITLE@ in bootloader config files" )
>       parser.add_argument( "--project", default="Red Hat Enterprise Linux",
>                            help="substituted for @PROJECT@ in bootloader config files" )
> -    parser.add_argument( "--releasever", type=int, default=7,
> +    parser.add_argument( "--releasever", default="7.0",
>                            help="substituted for @VERSION@ in bootloader config files" )
>       parser.add_argument( "--volid", default=None, help="volume id")
>       parser.add_argument( "--squashfs_args",

Ack.


More information about the anaconda-patches mailing list