Page MenuHomeFreeBSD

D35094.diff
No OneTemporary

D35094.diff

diff --git a/usr.sbin/bsdinstall/scripts/netconfig_ipv4 b/usr.sbin/bsdinstall/scripts/netconfig_ipv4
--- a/usr.sbin/bsdinstall/scripts/netconfig_ipv4
+++ b/usr.sbin/bsdinstall/scripts/netconfig_ipv4
@@ -49,6 +49,9 @@
dialog --backtitle 'FreeBSD Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0
if [ $? -eq $DIALOG_OK ]; then
if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
+ # XXX: get interface down otherwise after installation restart
+ # dhclient does not build a new resolv.conf (see PR262262).
+ ifconfig $INTERFACE down
ifconfig $INTERFACE up
dialog --backtitle 'FreeBSD Installer' --infobox "Acquiring DHCP lease..." 0 0
err=$( pkill -F /var/run/dhclient/dhclient.${INTERFACE}.pid; dhclient $INTERFACE 2>&1 )

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 18, 6:43 AM (13 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15467485
Default Alt Text
D35094.diff (794 B)

Event Timeline