dracut-kdump.sh: POSIX doesn't support pipefail
upstream: fedora
resolves: bz2003832
conflict: none
commit 725027b735
Author: Kairui Song <kasong@redhat.com>
Date:   Thu Aug 12 02:55:32 2021 +0800
    dracut-kdump.sh: POSIX doesn't support pipefail
    Set pipefail will cause POSIX shell to exit with failure. So only do
    that in bash.
    Signed-off-by: Kairui Song <kasong@redhat.com>
    Acked-by: Philipp Rudo <prudo@redhat.com>
Signed-off-by: Tao Liu <ltao@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									039c1d4dc8
								
							
						
					
					
						commit
						62d6f35de4
					
				| @ -31,7 +31,10 @@ KDUMP_POST="" | |||||||
| NEWROOT="/sysroot" | NEWROOT="/sysroot" | ||||||
| OPALCORE="/sys/firmware/opal/mpipl/core" | OPALCORE="/sys/firmware/opal/mpipl/core" | ||||||
| 
 | 
 | ||||||
| set -o pipefail | # POSIX doesn't have pipefail, only apply when using bash | ||||||
|  | # shellcheck disable=SC3040 | ||||||
|  | [ -n "$BASH" ] && set -o pipefail | ||||||
|  | 
 | ||||||
| DUMP_RETVAL=0 | DUMP_RETVAL=0 | ||||||
| 
 | 
 | ||||||
| get_kdump_confs() | get_kdump_confs() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user