I tried the rpi-imager tool for the first time to write RPiOS to an SD card. I've always just used dd and then manually edited the cmdline and config files in boot/. I entered my WiFi information in the GUI and wrote to the SD card, stuck it in and the RPi came online and connected to my network, but I want to know where the rpi-imager GUI writes the WiFi information.

It's not where I expect:

$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf

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

but the Pi is definitely online and connected to my network!


1 Answer 1


Figured it out:


  • 1
    This may be where NetworkManager (which is 10 years old and well documented) saves its connections but it is NOT put there by rpi-imager (because it can't). If you look at the boot sector (before 1st boot) you will see a file which is installed by a task that runs on boot.
    – Milliways
    Oct 21, 2023 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.