93ba58 Add a new hook: 92-crashkernel.install

Authored and Committed by Kairui Song 3 years ago
    Add a new hook: 92-crashkernel.install
    
    Resolves: bz1974638
    Upstream: Fedora
    Conflict: Minor conflict in spec file resolved easily
    
    commit 646364193597401a55eb2485ef7840bb5eef7d88
    Author: Kairui Song <kasong@redhat.com>
    Date:   Thu Jun 10 13:06:23 2021 +0800
    
        Add a new hook: 92-crashkernel.install
    
        To track and manage kernel's crashkernel usage by kernel version,
        each kernel package will include a crashkernel.default containing the
        default `crashkernel=` value of that kernel. So we can use a hook to
        update the kernel cmdline of new installed kernel accordingly.
    
        Put it after all other grub boot loader setup hooks, so it can simply
        call grubby to modify the kernel cmdline.
    
        Signed-off-by: Kairui Song <kasong@redhat.com>
        Acked-by: Baoquan He <bhe@redhat.com>
    
    Signed-off-by: Kairui Song <kasong@redhat.com>
    
        
file added
+143
file modified
+4 -0