0

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
update_config=1

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

2

1 Answer 1

0

Figured it out:

/etc/NetworkManager/system-connections

3
  • 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
    Commented Oct 21, 2023 at 23:31
  • @Milliways the article you posted above says the exact opposite
    – MikeKulls
    Commented Mar 26 at 11:48
  • The article says no such thing. If you ACTUALLY looked at the image created by rpi-imager (before 1st boot) you will see how it works and it DEFINITELY does not configure wpa_supplicant.conf which is what you originally asked. The OS has code (automatically run on first boot) to configure many things. How do I set up networking on Raspberry Pi OS - Bookworm explains Bookworm settings. As I stated the imager is incapable for modifying an ext4 partition.
    – Milliways
    Commented Mar 26 at 12:13

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.