easy to break wifi completely when using own wpa_supplicant.conf in /boot

Bug #1722817 reported by Nicolas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

Many people need a headless setup and ssh connectivity. Google leads to this stackexchange

https://raspberrypi.stackexchange.com/questions/10251/prepare-sd-card-for-wifi-on-headless-pi:

----
A skeleton wpa_supplicant.conf file can be as little as:

network={
    ssid="YOUR_SSID"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}
----

Using this basic config does not work and breaks wifi even in Desktop mode.

Reproduce:
1. create /boot/wpa_supplicant.conf:
network={
    ssid="YOUR_SSID"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}
2. Boot to desktop and click on Connections button top right. It's wonky and you cannot reconfigure wifi

3. Adding
----
Solution:
the conf needs to include
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

before automagically copying from /boot to /etc/wpa_supplicant/wpa_supplicant.conf check for

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

being there and add if not. or just document this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.