Is there a way to change networksettings before first boot?

variables:
Win 10
rapberry Pi imager
Home Assistant OS
Raspberry Pi 4

I write an image (i’ve tried both sd-card and a usb-hd)
I unfortunately have a home network where my dhcp-server gives a local dns-server that doesn’t work. I can fix it but then i have to reinstall the whole wifi/home network since I can’t log into it.

My problem is that the hassOS boot fails on some kernel time sync (which I guess uses the DNS to access som timeservers. the it won’t start the CLI:
Home Assistant CLI is not running! Jump into emergency console

My solution on other devices has been to change the dhcp server of 192.168.1.1 to a manual 8.8.8.8 or 8.8.4.4

Is there a way to configure the network in the emergency console? Or some other way

Yes you can use the ha network command. Check ha network --help to get information about the available options.

1 Like