So i've read all the related searched on this and haven't found a relevant answer that works for a headless remote boot, so here goes: I'm setting up a headless repeatable image for Raspberry pi. I'm using Raspbian buster 64-bit lite image.
I've set a default user with userconf which works fine. I've set the ssh to be auto enabled which works fine.
What's not working is the wlan0 config through wpa_supplicant.
On first boot, all is well and after login, I get the following error:
Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use.
So my wpa_supplicant looks like this(and includes a country= line):
country=CA
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="SSID1"
psk=[encryptedPasswd]
}
network={
scan_ssid=1
ssid="SSID2"
psk=[encryptedPasswd]
}
Any thoughts on how to get the wlan0 interface to come up properly without running a command post-boot?