[PATCH] Prevent debug and kdump kernels from becoming the default (#693702)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux