Replaced my laptop today. Copied the disk's content to the new one (Dell Precision 5690, from work).
Suddenly wifi asks me for password. Huh? It turns out that the nmconnection writes the interface-name in just about any connection, and this is a bad idea for a system with a single wifi.
My fix (I think, had few iterations,):
sed -i -e '/interface-name=wlo1/d' /etc/NetworkManager/system-connections/*.nmconnection
systemctl restart NetworkManager
Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.
Stay safe. Please abide by our code of conduct.
(Source code)