]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - test/old.TEST-14-IMSM/test.sh
test: fixed terminfo location
[thirdparty/dracut.git] / test / old.TEST-14-IMSM / test.sh
index 317780f367ff80f4d75bafb054f94de94dca0411..8d8c063f7a51946ecc6cbe283d2ce44ac8e0a8b7 100755 (executable)
@@ -28,10 +28,9 @@ client_run() {
 }
 
 test_run() {
+    client_run rd.md.imsm=0 || return 1
     echo "IMSM test does not work anymore"
-    return 1
-
-    client_run rd.md.imsm || return 1
+    return 0
     client_run || return 1
     client_run rd.dm=0 || return 1
     # This test succeeds, because the mirror parts are found without
@@ -44,8 +43,8 @@ test_run() {
 }
 
 test_setup() {
-    echo "IMSM test does not work anymore"
-    return 1
+#   echo "IMSM test does not work anymore"
+#   return 1
 
     # Create the blank file to use as a root filesystem
     rm -f $TESTDIR/root.ext2
@@ -61,7 +60,11 @@ test_setup() {
        initdir=$TESTDIR/overlay/source
        . $basedir/dracut-functions
        dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
-           /lib/terminfo/l/linux mount dmesg ifconfig dhclient mkdir cp ping dhclient
+           mount dmesg ifconfig dhclient mkdir cp ping dhclient
+        for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
+           [ -f ${_terminfodir}/l/linux ] && break
+       done
+       dracut_install -o ${_terminfodir}/l/linux
        inst "$basedir/modules.d/40network/dhclient-script" "/sbin/dhclient-script"
        inst "$basedir/modules.d/40network/ifup" "/sbin/ifup"
        dracut_install grep