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.
# 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[@]}" \
# 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 \