[master/rhel7-branch] s390x: Don't create kdump bootloader entries. (#1036086)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Tue Mar 11 00:37:57 UTC 2014
On Thu, Mar 06, 2014 at 10:58:22AM +0100, Jan Stodola wrote:
> 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?
Sigh, yes I do. Thank you. :)
> >+
> > 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
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list