Reads good.
OK florian

On 24 August 2021 19:41:06 CEST, Alexander Bluhm <[email protected]> 
wrote:
>Hi,
>
>For some weeks my automatic regress tests are not started reliably.
>When the auto upgrader tries to fetch the sets, sometimes ftp does
>not find any.  The em0 interface is down and has no address.
>
>get_responsefile() starts dhcpleased and sets "ifconfig inet
>autoconf".  After retrieving the response file, it clears the dhcp
>address with "ifconfig delete down".  I this is the old action when
>we had dhclient.
>
>As autoconf is not cleared, the upgrade's static netstart and
>dhcpleased both try to configure the interface, which does not work.
>
>So I think we should "ifconfig inet -autoconf" in get_responsefile()
>after we have finished using it.
>
>ok?
>
>bluhm
>
>Index: distrib//miniroot/install.sub
>===================================================================
>RCS file: /data/mirror/openbsd/cvs/src/distrib/miniroot/install.sub,v
>retrieving revision 1.1172
>diff -u -p -r1.1172 install.sub
>--- distrib//miniroot/install.sub      9 Aug 2021 13:56:17 -0000       1.1172
>+++ distrib//miniroot/install.sub      23 Aug 2021 19:51:42 -0000
>@@ -656,7 +656,8 @@ get_responsefile() {
>                       echo "Fetching $_url"
>                       if unpriv ftp -Vo - "$_url" \
>                               >"/tmp/ai/ai.$AI_MODE.conf" 2>/dev/null; then
>-                              ifconfig $_if delete down 2>/dev/null
>+                              ifconfig $_if inet -autoconf delete down \
>+                                  2>/dev/null
>                               rm /var/db/dhcpleased/$_if
>                               return 0
>                       fi
>@@ -685,7 +686,7 @@ get_responsefile() {
>       echo "Fetching $_rf"
>       [[ -f $_rf ]] && _rf="file://$_rf"
>       if unpriv ftp -Vo - "$_rf" >"/tmp/ai/ai.$AI_MODE.conf" 2>/dev/null; then
>-              ifconfig $_if delete down 2>/dev/null
>+              ifconfig $_if inet -autoconf delete down 2>/dev/null
>               return 0
>       fi
>       return 1
>

-- 
Sent from a mobile device. Please excuse poor formatting.

Reply via email to