ifconfig_DEFAULT changed on 14.x?

I like to make USB Live Thumbsticks for rescue and repair. I put CPUBurn on it and try and break customers computers.
(Install from FreeBSD USB memstick onto USB stick)

I just made a USB Live stick with 14.1-RELEASE-AMD64 and I am finding the DEFAULT interface behavior has changed.

ifconfig_DEFAULT setting on first boot now adds the machines interface automatically to /etc/rc.conf at the bottom.

Problem is once I reboot it will not assign an IP via DHCP to any interface even though ifconfig_DEFAULT=DHCP and ifconfig_em0=DHCP both now exist in /etc/rc.conf.

I have used multiple interfaces with ifconfig_em$=DHCP before but with ifconfig_DEFAULT it fails here with single interface.

So POLA by adding stuff to my /etc/rc.conf without asking. Then it leaves ifconfig_DEFAULT in place making it fail.
Am I the only one seeing this?
 
Example /etc/rc.conf
Code:
ifconfig_DEFAULT="DHCP"

reboot and check /etc/rc.conf
Code:
ifconfig_DEFAULT="DHCP"
ifconfig_em0="DHCP"

Can't SSH in now. ifconfig shows em0 active no IP assigned.

I enjoy keeping ifconfig_DEFAULT=DHCP for the reason stated above.
This is floater drive to work on stuff.
This worked perfect in past but this is my first 14.x USB build.
 
This does appear to be a bug.

I have confirmed the behavior. But....

If you only comment out the inferface It doesn't get triggered.

Example continued from above /etc/rc.conf
Code:
ifconfig_DEFAULT="DHCP"
#ifconfig_em0="DHCP"
Ok just for sanity I comment out line I don't want.
Reboot and nothing gets added to /etc/rc.conf.
???
Still no DHCP lease on em0. Floundering. dhclient goes up down some.
Totally remove offending line then reboot and then the "found" interface is added to /etc/rc.conf at bottom.
Nothing in dmesg. I need to check messages to see if this is silent.

Supspect dhclient is triggering something that adds interface to rc.conf.
Some dhclient startup script might be scanning /etc/rc.conf for contents if commenting out does not work.
 
Back
Top