Wifi Config - Unknown Global Field ctrl_interface
Hi, i am trying to build snapOS for an RPi3, to try and reduce the vulnerabilities in my network, reduce attack surface etc.
I have built the images and flashed it successfully, now when i try and boot (after updating network details), i get the following warning:
Successfully initialized wpa_supplicant
Line 2: unknown global field 'ctrl_interface/var/run/wpa_supplicant'
Line 2: Invalid configuration line 'ctrl_interface/var/run/wpa_supplicant'
Failed to read or parse configuration '/etc/wpa_supplicant.comf'
FAIL
note: i ahve hand typed this, so there may be typo's.
Any help with what i am missing/doing wrong would be great.
thanks!
I have never used snapos, but stumbled across this exact same error while upgrading buildroot in my own Raspberry pi based project. It turns out that newer version of buildroot have this change, which disabled the CONFIG_CTRL_IFACE setting for wpa_supplicant, which means that the ctrl_interface is not recognized.
The fix would either be to re-enable CONFIG_CTRL_IFACE, or to remove the ctrl_interface setting if you don't need it. I did the latter over in https://github.com/jfly/jpi/commit/43614e26166bf63d513fe7433972214d2e507379.