You are not logged in.

#1 2020-02-02 17:52:40

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

[SOLVED] Copy wifi config to new install

Synopsis: Copy the Arch ISO wifi profile located in /etc/netctl to the target and since it will reference the kernel version of the wifi device name I'll hack the target profile to reference the netctl version of the device name.

How do I copy the wifi config used during a new install to the target so that it automatically connects on first boot into the new system?

Last edited by KairiTech (2020-02-06 19:25:56)

Offline

#2 2020-02-02 18:33:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] Copy wifi config to new install

What are you using to control your wifi?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2020-02-02 20:26:24

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [SOLVED] Copy wifi config to new install

ewaller wrote:

What are you using to control your wifi?

I connect using wifi-menu.

Offline

#4 2020-02-03 12:24:47

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Copy wifi config to new install

wifi-menu is part of netctl and netctl uses profiles to store/setup connection data.

https://wiki.archlinux.org/index.php/Netctl has info where those profiles are located .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-02-06 01:37:35

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [SOLVED] Copy wifi config to new install

Easy enough to copy the wifi profiles created by wifi-menu located in /etc/netctl to the new install then activate the wifi device like so...

systemctl enable netctl-auto@<device>.service

However, my wifi device shows up as wlan0 during the install but changes to wlp6s0 when I boot into the new system.

How do I get both the install wifi device and the new system wifi device to use the same device name?

Offline

#6 2020-02-06 09:36:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Copy wifi config to new install

The installation iso uses iwd which is configured to use the names provided by the kernel ( eth0 , eth1 , wlan0 etc ) .

On an installed archlinux systemd-udev renames the devices.

https://bbs.archlinux.org/viewtopic.php?id=251713 discusses this, for background info start on https://wiki.archlinux.org/index.php/Pe … ice_naming .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2020-02-06 16:32:13

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [SOLVED] Copy wifi config to new install

Very interesting reading.  This is ugly and I think creating my own device naming rules is a bit extreme so I'll just hack the profile copied to the new install to reference the netctl version of the wifi device name that will show up there.

This in not scalable I know but it will do for now.

Last edited by KairiTech (2020-02-06 19:24:53)

Offline

Board footer

Powered by FluxBB