]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(img-lib): trim required binaries
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 14 Jan 2025 13:28:02 +0000 (08:28 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Wed, 15 Jan 2025 12:50:06 +0000 (07:50 -0500)
Make all compression methods optional to allow
including only the binaries that are needed to uncompress.

modules.d/99img-lib/module-setup.sh

index 3cbf4221d94b70aa988b919502725597c926fe44..ffc8365ed4d12b8cd20c2996b16d09c3b2697206 100755 (executable)
@@ -3,14 +3,14 @@
 
 # called by dracut
 check() {
-    require_binaries tar gzip dd echo tr || return 1
+    require_binaries dd echo tr || return 1
     return 255
 }
 
 # called by dracut
 install() {
-    inst_multiple tar gzip dd echo tr rmdir
+    inst_multiple dd echo tr
     # TODO: make this conditional on a cmdline flag / config option
-    inst_multiple -o cpio xz bzip2 zstd
+    inst_multiple -o cpio xz bzip2 zstd tar gzip rmdir
     inst_simple "$moddir/img-lib.sh" "/lib/img-lib.sh"
 }