]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(net-lib): require and install only the necessary binaries
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 8 Jul 2024 07:17:54 +0000 (09:17 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 8 Jul 2024 11:02:08 +0000 (07:02 -0400)
- `pgrep`, `tr` not needed.
- `sed` installed by `base`.

modules.d/45net-lib/module-setup.sh

index 8053aa6f3a471c1afd88605f5aa40ba47aa26625..ed5e5ede654c9124152a2ac13f79813a92559b45 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 check() {
+    require_binaries ip awk grep || return 1
     return 255
 }
 
@@ -14,7 +15,7 @@ install() {
     inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh"
     inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
     inst_hook cmdline 91 "$moddir/dhcp-root.sh"
-    inst_multiple ip sed awk grep pgrep tr
+    inst_multiple ip awk grep
     inst_multiple -o arping arping2
     dracut_need_initqueue
 }