Prevent debug and kdump kernels from becoming the default (#693702)
---
booty/s390.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/booty/s390.py b/booty/s390.py
index 0101d96..9fd9c1e 100644
--- a/booty/s390.py
+++ b/booty/s390.py
@@ -131,7 +131,8 @@ class s390BootloaderInfo(bootloaderInfo):
f.write('[defaultboot]
')
if self.timeout:
f.write('timeout=%d
' % self.timeout)
- f.write('default=' + kernelList[-1][0] + '-' + kernelList[-1][2] + '
')
+ defaultList = filter(lambda x: not (x[0].endswith('debug') or x[0].endswith('kdump')), kernelList)
+ f.write('default=' + defaultList[-1][0] + '-' + defaultList[-1][2] + '
')
f.write('target=%s
' % (self.kernelLocation))
cfPath = "/boot/"
--
1.7.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|