[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Prevent debug and kdump kernels from becoming the default (#693702)
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] Prevent debug and kdump kernels from becoming the default (#693702)
- Date: Tue, 5 Apr 2011 12:22:30 -1000
---
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]\n')
if self.timeout:
f.write('timeout=%d\n' % self.timeout)
- f.write('default=' + kernelList[-1][0] + '-' + kernelList[-1][2] + '\n')
+ defaultList = filter(lambda x: not (x[0].endswith('debug') or x[0].endswith('kdump')), kernelList)
+ f.write('default=' + defaultList[-1][0] + '-' + defaultList[-1][2] + '\n')
f.write('target=%s\n' % (self.kernelLocation))
cfPath = "/boot/"
--
1.7.1
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]