]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(test): remove check on dhclient support for --timeout
authorBeniamino Galvani <bgalvani@redhat.com>
Wed, 1 Feb 2023 10:07:49 +0000 (11:07 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 7 Feb 2023 13:40:11 +0000 (14:40 +0100)
The network-legacy dracut module already ignores the DHCP timeout option when
it's not supported by dhclient. Other network modules don't use dhclient for
DHCP.

test/TEST-20-NFS/test.sh
test/TEST-50-MULTINIC/test.sh

index c637b5788be0067231df0d5b6bdae2d00132d846..8f26ddcc4ea63f551ec318a868396d90cebacfec 100755 (executable)
@@ -61,10 +61,7 @@ client_test() {
     # shellcheck disable=SC2034
     declare -i disk_index=0
     qemu_add_drive_args disk_index disk_args "$TESTDIR"/marker.img marker
-
-    if dhclient --help 2>&1 | grep -q -F -- '--timeout' 2> /dev/null; then
-        cmdline="$cmdline rd.net.timeout.dhcp=3"
-    fi
+    cmdline="$cmdline rd.net.timeout.dhcp=3"
 
     "$testdir"/run-qemu \
         "${disk_args[@]}" \
index 21362b99c57692a567999dea0ae658555b105d59..9d84ff7d03b9daece4e38d9741e86c158efc5c68 100755 (executable)
@@ -63,10 +63,7 @@ client_test() {
     # shellcheck disable=SC2034
     declare -i disk_index=0
     qemu_add_drive_args disk_index disk_args "$TESTDIR"/marker.img marker
-
-    if dhclient --help 2>&1 | grep -q -F -- '--timeout' 2> /dev/null; then
-        cmdline="$cmdline rd.net.timeout.dhcp=3"
-    fi
+    cmdline="$cmdline rd.net.timeout.dhcp=3"
 
     # Invoke KVM and/or QEMU to actually create the target filesystem.
     "$testdir"/run-qemu \