From 4b061633b367a5c60fe115aeec4790648975d447 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Thu, 9 Aug 2012 10:22:50 +0800 Subject: [PATCH] s390x firstboot fix Resolves: bz805782 1. remove s390x from unsupported archs 2. add s390x bootloader handling Signed-off-by: Dave Young Acked-by: Vivek Goyal --- firstboot_kdump.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firstboot_kdump.py b/firstboot_kdump.py index 83418db..e2d5a9b 100755 --- a/firstboot_kdump.py +++ b/firstboot_kdump.py @@ -59,12 +59,13 @@ class moduleClass(Module): # bootloader : (config file, kdump offset) bootloaders = { "grub" : (["/boot/grub/grub.conf", "/boot/efi/EFI/redhat/grub.conf"], [16, 256]), "grub2" : (["/boot/grub2/grub.cfg"], [16, 256]), + "zipl" : (["/etc/zipl.conf"], [0]), "yaboot" : (["/boot/etc/yaboot.conf"], [32]) } bootloader = None offset = 0 # list of architectures without kdump support - unsupportedArches = [ "ppc", "s390", "s390x", "i386", "i586" ] + unsupportedArches = [ "ppc", "s390", "i386", "i586" ] # list of platforms that have a separate kernel-kdump kernelKdumpArches = [ "ppc64" ] @@ -408,6 +409,8 @@ class moduleClass(Module): os.system("/bin/systemctl %s kdump.service" % (chkconfigStatus)) if self.bootloader == 'yaboot': os.system('/sbin/ybin') + if self.bootloader == 'zipl': + os.system('/sbin/zipl') else: self.reboot = False