6c26a3 fadump: avoid non-debug kernel use for fadump case

Authored and Committed by Lichen Liu 2 years ago
1 file changed. 7 lines added. 1 lines removed.
    fadump: avoid non-debug kernel use for fadump case
    
    Resolves: bz2129842
    Upstream: Fedora
    Conflict: None
    
    commit d905d49c08deab9a404220e8dc0c127df51455d2
    Author: Hari Bathini <hbathini@linux.ibm.com>
    Date:   Fri Sep 16 19:07:24 2022 +0530
    
        fadump: avoid non-debug kernel use for fadump case
    
        Since commit c5bdd2d8f195 ("kdump-lib: use non-debug kernels first"),
        non-debug kernel is preferred, over the debug variant, as dump capture
        kernel to reduce memory consumption. This works alright for kdump as
        the capture kernel is loaded using kexec.
    
        In case of fadump, regular boot loader is used to load the capture
        kernel. So, the default kernel needs to be used as capture kernel as
        well. But with commit c5bdd2d8f195, initrd of a different kernel is
        made dump capture capable, breaking fadump's ability to capture dump
        properly. Fix this by sticking with the debug variant in case of
        fadump.
    
        Fixes: c5bdd2d8f195 ("kdump-lib: use non-debug kernels first")
    
        Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
        Acked-by: Lichen Liu <lichliu@redhat.com>
        Acked-by: Coiby Xu <coxu@redhat.com>
    
    Signed-off-by: Lichen Liu <lichliu@redhat.com>
    
        
file modified
+7 -1