Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-01-25 15:39:27 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-01-25 15:39:27 +0100
commit405794d53f1f47e2a19a906dbdfa6ad39ea79c17 (patch)
tree06dbb08c07df41eac09247bd2839549086f6df5b /archinstall
parent1c80a893acfb97859dd6c0f61a2cf74c03958595 (diff)
Adding copy mode for #95 (#82). I wouldn't say this is a hacky way of doing it, but using a string as identifier is the only way I can think of currently in guided.py. When user is prompted to select a interface to configure for networking, there's now a zero-option to copy existing ISO configuration to the install medium. This enables advance configuration prior to running the installer - and simply copy it straight over to the install medium. Two requirements: 1: That iwd is used for wifi configuration and config for passwords etc are stored in /var/lib/iwd 2: That systemd-networkd is used to configure networking/IP/DHCP as anything under /etc/systemd/networkd/* is copied over.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 51540060..c8cf40d0 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -183,7 +183,7 @@ class Installer():
with open(f"{self.mountpoint}/etc/systemd/network/10-{nic}.network", "a") as netconf:
netconf.write(str(conf))
- def copy_network_config(self, enable_services=False):
+ def copy_ISO_network_config(self, enable_services=False):
# Copy (if any) iwd password and config files
if os.path.isdir('/var/lib/iwd/'):
if (psk_files := glob.glob('/var/lib/iwd/*.psk')):