powerpc/boot: Fix check of supported compression methods
PATCH 1/1 powerpc/boot: Fix check of supported compression methods
The current check is bogus and would allow to pass any value with the -Z option.
Signed-off-by Antonio Alvarez Feijoo <[email protected]>
--- arch/powerpc/boot/wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/boot/wrapper +1 -1
@@ -148,7 +148,7 @@ while [ "$#" -gt 0 ]; do -Z) shift [ "$#" -gt 0 ] || usage - [ "$1" != "gz" -o "$1" != "xz" -o "$1" != "lzma" -o "$1" != "lzo" -o "$1" != "none" ] || usage + [ "$1" = "gz" -o "$1" = "xz" -o "$1" = "lzma" -o "$1" = "lzo" -o "$1" = "none" ] || usage compression=".$1" uboot_comp=$1
Signature · 1 line
2.51.0