From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id AC71E1FF0AA for ; Tue, 17 Nov 2026 07:04:09 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 561B021632; Tue, 17 Nov 2026 07:04:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 6AH5vCnS018890 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1794895038; bh=VsBmmr7UjREoLaKbOtX4akuGUTtw86qfIfyAyJKfS98=; h=Date:From:Subject:To:From; b=I9I9ruCDcoZ3YjWks2MKaCSj0THkpKmzAojJs1GfkvyrWtiyqGuGOPDdoPfaUkw8F j1iEoaefDfvAa0mqZzhguAoxVi2cPGdR2YifI7nNPYLP4Cefu2hHPLUF4eV6AMpwWN cOPO1doFF+MWR7t9VrQ3pBkeKjW4PMuUcOO5yuYpWQWPYetytV5BaOHQVqAW/wcJvr fSTKvM1l+LpdyNzoRRt4mfZtlBKgOLn2CpMxvO/fKFd3Cvl2giTw1y8tglsncODom5 4QM295M0qHR+T+8XJ9vkNlNSQjx7999jrFDK1JTA1Zf1yMa+CCEOjvZfbOMcdAeWY+ AqSPlQX0uIq+Q== Message-ID: <38668878-c441-4494-87c7-4c5ce8637344@polymtl.ca> Date: Tue, 17 Nov 2026 00:57:11 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Romain Lebbadi-Breteau Subject: [PATCH pve-installer] fix #5583: add dhclient options in kernel cmdline To: pve-devel@lists.proxmox.com Content-Language: en-CA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable086.79-200-24.mc.videotron.ca [24.200.79.86]) at Tue, 17 Nov 2026 05:57:12 +0000 X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust RCVD_IN_MSPIKE_H3 0.001 Good reputation (+3) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GHNIOVMA4CGS4ZTEZPKMZKZMDFDIZ65E X-Message-ID-Hash: GHNIOVMA4CGS4ZTEZPKMZKZMDFDIZ65E X-MailFrom: romain.lebbadi-breteau@polymtl.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This applies the patch proposed in bug report #5583 (https://bugzilla.proxmox.com/attachment.cgi?id=1421). I built the proxmox-installer.deb package, extracted it in pve-installer.squashfs in a live ISO and tested it in a virtual machine. The command-line arguments work as expected, and allow for a bigger timeout especially when using a switch with STP. Signed-off-by: Romain Lebbadi-Breteau ---  unconfigured.sh | 43 ++++++++++++++++++++++++++++++++++++++++++-  1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/unconfigured.sh b/unconfigured.sh index 31fcfca..76b2d00 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -13,6 +13,16 @@parse_cmdline() {      proxtui=0      serial=0      live_vlan_id= + +    # these are the original defaults from the stock proxmox dhclient.conf +    dhclient_timeout=10 +    dhclient_initial_interval=3 +    dhclient_initial_delay=0 +    dhclient_select_timeout=0 + +    # these are defaults from the dhclient.conf man page +    dhclient_retry=300 +      # shellcheck disable=SC2013 # per word splitting is wanted here      for par in $(cat /proc/cmdline); do          case $par in @@ -31,10 +41,39 @@parse_cmdline() {              proxmox-vlan=*)                  live_vlan_id=${par#proxmox-vlan=}              ;; +            dhclient_timeout=*) +                dhclient_timeout=${par#dhclient_timeout=} +            ;; +            dhclient_initial_interval=*) +                dhclient_initial_interval=${par#dhclient_initial_interval=} +            ;; +            dhclient_initial_delay=*) +                dhclient_initial_delay=${par#dhclient_initial_delay=} +            ;; +            dhclient_select_timeout=*) +                dhclient_select_timeout=${par#dhclient_select_timeout=} +            ;; +            dhclient_retry=*) +                dhclient_retry=${par#dhclient_retry=} +            ;; +          esac      done;  } +create_dhclient_conf() { +    # create a new dhclient.conf file based on values from +    # above, either defaults or read from cmdline +    cat > /etc/dhcp/dhclient.conf <