0aaa05 dracut-module-setup.sh: stop overwriting dracut's trap handler

Authored and Committed by Coiby Xu 2 years ago
    dracut-module-setup.sh: stop overwriting dracut's trap handler
    
    Resolves: bz2151832
    Upstream: Fedora
    Conflict: None
    
    commit b45896c62096f7fcfd65afffb4cd93a3ae5f8b1a
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Tue Dec 6 18:18:32 2022 +0800
    
        dracut-module-setup.sh: stop overwriting dracut's trap handler
    
        Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2149246
    
        Latest Workstation live x86_64 image has an excess increase of ~300 MB
        in size. This is because kdumpbase module's trap handler overwrites
        dracut's handler and DRACUT_TMPDIR which has three unpacked initramfs
        files fails to be cleaned up. This patch moves kdumpbase module's
        temporary folder under DRACUT_TMPDIR and lets dracut's trap handler do
        the cleanup instead.
    
        Fixes: d25b1ee3 ("Add functions to copy NetworkManage connection profiles to the initramfs")
        Signed-off-by: Coiby Xu <coxu@redhat.com>
        Reviewed-by: Philipp Rudo <prudo@redhat.com>
    
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    
        
file modified
+1 -8