Whichever kernel is listed first by kernelVersionList() will be set as the default kernel by writeBootloader. That's a problem if you're on a Xen guest and the first kernel isn't kernel-xen. This patch sorts the list returned by kernelVersionList() to put the xenU/xen kernels at the top. --- bootloader.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/bootloader.py b/bootloader.py index 940478d..371092b 100644 --- a/bootloader.py +++ b/bootloader.py @@ -175,7 +175,11 @@ def writeBootloader(anaconda): plainLabelUsed = 0 defkern = "kernel" - for (version, arch, nick) in anaconda.backend.kernelVersionList(): + backendKernelList = anaconda.backend.kernelVersionList() + if iutil.inXen(): + kernel_rank = {'xenU':1, 'xen':2} # sort based on this ranking + backendKernelList.sort(key=lambda (v,a,n): kernel_rank.get(n,9)) + for (version, arch, nick) in backendKernelList: if plainLabelUsed: kernelList.append(("%s-%s" %(kernelLabel, nick), "%s-%s" %(kernelLongLabel, nick), -- 1.7.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list