Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/scripts/unattended.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/scripts/unattended.py')
-rw-r--r--archinstall/scripts/unattended.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/archinstall/scripts/unattended.py b/archinstall/scripts/unattended.py
new file mode 100644
index 00000000..0a1c5160
--- /dev/null
+++ b/archinstall/scripts/unattended.py
@@ -0,0 +1,18 @@
+import time
+
+import archinstall
+from archinstall.lib.profile.profiles_handler import profile_handler
+
+for profile in profile_handler.get_mac_addr_profiles():
+ # 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).
+ archinstall.log(f'Found a tailored profile for this machine called: "{profile.name}"')
+
+ print('Starting install in:')
+ for i in range(10, 0, -1):
+ print(f'{i}...')
+ time.sleep(1)
+
+ install_session = archinstall.storage['installation_session']
+ profile.install(install_session)