From: Jo Zzsi Date: Sun, 24 Nov 2024 02:12:38 +0000 (-0500) Subject: test(test-root): include terminfo dracut module X-Git-Tag: 106~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=290f779d9877ee481d69f82e2f28f93ad2e5aba8;p=thirdparty%2Fdracut-ng.git test(test-root): include terminfo dracut module Include an existing dracut module instead of attempting to reimplement it. --- diff --git a/test/modules.d/80test-root/module-setup.sh b/test/modules.d/80test-root/module-setup.sh index 39c142eec..3e17395f2 100755 --- a/test/modules.d/80test-root/module-setup.sh +++ b/test/modules.d/80test-root/module-setup.sh @@ -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