]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(test-root): only include debug module if V is set to 2
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 5 Sep 2024 13:20:14 +0000 (09:20 -0400)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 7 Sep 2024 21:43:04 +0000 (17:43 -0400)
This PR enables CI to run faster by default (V=1).

When debugging (V=2) debug module will be included as before.

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

index c39111ceeb20281b0a7866d90fe7df7ec0137918..9432957d455623ee9c736ac909f0db4d4b976fe9 100755 (executable)
@@ -6,7 +6,11 @@ check() {
 }
 
 depends() {
-    echo debug
+    if [[ $V == "2" ]]; then
+        echo debug
+    fi
+
+    return 0
 }
 
 install() {
@@ -19,7 +23,7 @@ install() {
 
     inst_simple /etc/os-release
 
-    inst_multiple mkdir ln dd stty mount poweroff umount setsid sync
+    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