]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(test-root): include terminfo dracut module
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 24 Nov 2024 02:12:38 +0000 (21:12 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 24 Nov 2024 02:17:46 +0000 (03:17 +0100)
Include an existing dracut module instead of attempting
to reimplement it.

test/modules.d/80test-root/module-setup.sh

index 39c142eec0b8d4abfb874f0ec11718b896c65969..3e17395f20a5b774985ef0bcd45a4d7677ea967e 100755 (executable)
@@ -6,10 +6,14 @@ check() {
 }
 
 depends() {
+    local deps
+    deps="terminfo"
+
     if [[ $V == "2" ]]; then
-        echo debug
+        deps+=" debug"
     fi
 
+    echo "$deps"
     return 0
 }
 
@@ -18,11 +22,6 @@ install() {
 
     inst_multiple mkdir ln dd stty mount poweroff umount setsid sync cat grep
 
-    for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
-        [ -f "${_terminfodir}/l/linux" ] && break
-    done
-    inst_multiple -o "${_terminfodir}/l/linux"
-
     inst_script "$moddir/test-init.sh" "/sbin/init"
 
     inst_multiple -o plymouth