[master/rhel7-branch] s390x: Don't create kdump bootloader entries. (#1036086)

Jan Stodola jstodola at redhat.com
Thu Mar 6 09:58:22 UTC 2014


On 03/05/2014 10:48 PM, Samantha N. Bueno wrote:
> As this is not necessary, don't try to do it.
>
> Resolves: rhbz#1036086
> ---
>   pyanaconda/bootloader.py | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index a30f2cd..991bc47 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -2102,6 +2102,10 @@ class ZIPL(BootLoader):
>   
>       def write_config_images(self, config):
>           for image in self.images:
> +            if "kdump" in (image.initrd or image.kernel):
> +                # no need to create bootloader entries for kdump
> +                return

Don't you want to use "continue" here to process next item(s) in the for 
loop?

> +
>               args = Arguments()
>               if image.initrd:
>                   initrd_line = "\tramdisk=%s/%s\n" % (self.boot_dir,


-- 
Jan Stodola
Quality Assurance Engineer

Red Hat Czech s.r.o., Purkynova 99/71, 612 45  Brno, Czech Republic
Email: jstodola at redhat.com



More information about the anaconda-patches mailing list