[master 1/1] Fix the rescue kernel version list in writeBootLoader (#1201429)
dashea
installerbot-noreply at redhat.com
Thu Mar 12 18:04:01 UTC 2015
From: David Shea <dshea at redhat.com>
The list is supposed to contain versions, not full paths.
---
pyanaconda/bootloader.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 074bbca..51cd8cf 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -2395,8 +2395,10 @@ def writeBootLoader(storage, payload, instClass, ksdata):
# get a list of installed kernel packages
# add whatever rescue kernels we can find to the end
kernel_versions = list(payload.kernelVersionList)
- kernel_versions += glob(iutil.getSysroot() + "/boot/vmlinuz-*-rescue-*")
- kernel_versions += glob(iutil.getSysroot() + "/boot/efi/EFI/%s/vmlinuz-*-rescue-*" % instClass.efi_dir)
+
+ rescue_versions = glob(iutil.getSysroot() + "/boot/vmlinuz-*-rescue-*")
+ rescue_versions += glob(iutil.getSysroot() + "/boot/efi/EFI/%s/vmlinuz-*-rescue-*" % instClass.efi_dir)
+ kernel_versions += (f.split("/")[-1][8:] for f in rescue_versions)
if not kernel_versions:
log.warning("no kernel was installed -- boot loader config unchanged")
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/c98a0bfa8664d128ce9b6bfc38ead39c9d7ef922
More information about the anaconda-patches
mailing list