]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(crypt): crypt-lib.sh optionally depends on stty
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 4 Jan 2025 21:56:03 +0000 (16:56 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 4 Jan 2025 22:37:15 +0000 (17:37 -0500)
Follow-up to 1af3531.

modules.d/90crypt/module-setup.sh
modules.d/91crypt-gpg/module-setup.sh

index 5d9356b47b662a6664681501d31ff0defbd2ff58..8919b574ad184989628b71bfad5bb40b45800128 100755 (executable)
@@ -145,6 +145,7 @@ install() {
         fi
     fi
 
+    inst_multiple -o stty
     inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
     inst_script "$moddir/crypt-run-generator.sh" "/sbin/crypt-run-generator"
 
index 523cfcedc9ab5cc96d49fac85fc5d4e7c054f726..501869a26e96a511acfa05fcee9612c1f29034ab 100755 (executable)
@@ -3,7 +3,7 @@
 # GPG support is optional
 # called by dracut
 check() {
-    require_binaries gpg tr stty || return 1
+    require_binaries gpg tr || return 1
 
     if sc_requested; then
         if ! sc_supported; then
@@ -23,7 +23,7 @@ depends() {
 
 # called by dracut
 install() {
-    inst_multiple gpg tr stty
+    inst_multiple gpg tr
     inst "$moddir/crypt-gpg-lib.sh" "/lib/dracut-crypt-gpg-lib.sh"
 
     if sc_requested; then