26f00a mkdumprd: Use the correct syntax to redirect the stderr to null

Authored and Committed by Coiby Xu a year ago
1 file changed. 1 lines added. 1 lines removed.
    mkdumprd: Use the correct syntax to redirect the stderr to null
    
    Resolves: https://issues.redhat.com/browse/RHEL-518
    Upstream: Fedora
    Conflict: None
    
    commit e42a823daec946da013b63460cded5bd0ff53e48
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Thu Jun 1 16:05:05 2023 +0800
    
        mkdumprd: Use the correct syntax to redirect the stderr to null
    
        A space was added by mistake and unfortunately fips-mode-setup refuses
        an extra parameter,
    
            # fips-mode-setup --is-enabled 2 > /dev/null
            # echo $?
            2
            # fips-mode-setup --is-enabled 2
            Check, enable, or disable the system FIPS mode.
            usage: /usr/bin/fips-mode-setup --enable|--disable [--no-bootcfg]
            usage: /usr/bin/fips-mode-setup --check
            usage: /usr/bin/fips-mode-setup --is-enabled
    
        So in this case mkdumprd can never detect if FIPS is enabled. Fix this
        mistake.
    
        Fixes: 443a43e0 ("mkdumprd: call dracut with --add-device to install the drivers needed by /boot partition automatically for FIPS")
        Signed-off-by: Coiby Xu <coxu@redhat.com>
        Reviewed-by: Tao Liu <ltao@redhat.com>
    
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    
        
file modified
+1 -1