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:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-05-12 02:30:09 +1000
committerGitHub <noreply@github.com>2023-05-11 18:30:09 +0200
commit89cefb9a1c7d4c4968e7d8645149078e601c9d1c (patch)
tree12c84bdcef1b0ef3f8a21977e25c7f0f89388138 /archinstall/scripts/unattended.py
parent6e6b850a8f687b193172aaa321d49bd2956c1d4f (diff)
Cleanup imports and unused code (#1801)
* Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/scripts/unattended.py')
-rw-r--r--archinstall/scripts/unattended.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/archinstall/scripts/unattended.py b/archinstall/scripts/unattended.py
index 0a1c5160..5ae4ae3d 100644
--- a/archinstall/scripts/unattended.py
+++ b/archinstall/scripts/unattended.py
@@ -1,13 +1,14 @@
import time
import archinstall
-from archinstall.lib.profile.profiles_handler import profile_handler
+from archinstall import info
+from archinstall import profile
-for profile in profile_handler.get_mac_addr_profiles():
+for p in profile.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}"')
+ info(f'Found a tailored profile for this machine called: "{p.name}"')
print('Starting install in:')
for i in range(10, 0, -1):
@@ -15,4 +16,4 @@ for profile in profile_handler.get_mac_addr_profiles():
time.sleep(1)
install_session = archinstall.storage['installation_session']
- profile.install(install_session)
+ p.install(install_session)