Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/unattended.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 18:39:57 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 18:39:57 +0000
commit4f2a6372f656323040ce1a3d5a1bf50234d392aa (patch)
tree87bcda67b7a8dfd37caa85d16d6425099baf4205 /examples/unattended.py
parent6fe63626d64ba1f0b417ca96cfff60db46e3e6df (diff)
Trying to combat #62. By implementing a UPSTREAM_URL variable globally, which can be controlled, as well as a PROFILE_PATH which controls where it should look for profiles. the list_profiles() should be more robust.
Diffstat (limited to 'examples/unattended.py')
-rw-r--r--examples/unattended.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/unattended.py b/examples/unattended.py
index b0ef0b7b..c3bb12e6 100644
--- a/examples/unattended.py
+++ b/examples/unattended.py
@@ -1,6 +1,9 @@
import archinstall
import time
+archinstall.UPSTREAM_URL = 'https://archlinux.life/profiles'
+archinstall.UPSTREAM_DB = 'index.db'
+
for name, info in archinstall.list_profiles().items():
# Tailored means it's a match for this machine
# based on it's MAC address (or some other criteria