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:
Diffstat (limited to 'examples/unattended.py')
-rw-r--r--examples/unattended.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/unattended.py b/examples/unattended.py
deleted file mode 100644
index f1ed4c94..00000000
--- a/examples/unattended.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import time
-
-import archinstall
-
-archinstall.storage['UPSTREAM_URL'] = 'https://archlinux.life/profiles'
-archinstall.storage['PROFILE_DB'] = 'index.json'
-
-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
- # that fits the requirements for this machine specifically).
- if info['tailored']:
- print(f'Found a tailored profile for this machine called: "{name}".')
- print('Starting install in:')
- for i in range(10, 0, -1):
- print(f'{i}...')
- time.sleep(1)
-
- profile = archinstall.Profile(None, info['path'])
- profile.install()
- break