mirror of
https://gitlab.com/kernel-firmware/linux-firmware.git
synced 2026-03-14 21:20:10 +01:00
Revert "copy-firmware: Support additional compressor options"
This reverts commit 2bad80e7ed.
The commit effectively added accidental command injection, while it was aiming
to control the compression flags.
In practise you'd want to use ZSTD_CLEVEL and ZSTD_NBTHREADS for zstd. As
documented in zstd(1) it allows for up-to level 19, which is fine since the
kernel does not support higher levels.
Arch, Alpine and likely other distributions have been using this approach
since day one.
The other compressors like xz have equivalent.
Cc: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://lore.kernel.org/r/20240923-misc-fixes-v2-8-397f23443628@gmail.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
parent
d4a868beff
commit
259187f0d2
1 changed files with 0 additions and 8 deletions
|
|
@ -44,14 +44,6 @@ while test $# -gt 0; do
|
|||
shift
|
||||
;;
|
||||
|
||||
-*)
|
||||
if test "$compress" = "cat"; then
|
||||
echo "ERROR: unknown command-line option: $1"
|
||||
exit 1
|
||||
fi
|
||||
compress="$compress $1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
if test "x$destdir" != "x"; then
|
||||
echo "ERROR: unknown command-line options: $*"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue