Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-04-07 09:12:33 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-07 09:23:08 -0400
commitf85fb66bc61ee9b90537da59be00b37f49e5ffb8 (patch)
treeb5c22216a14d7aeb2e95c6b1b600d98bc43f9431 /examples
parentac7d980f8920b90e213acf95ca87b459eb072f3a (diff)
Add filtration on top level profile
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 0a655e8a..a7cc7edc 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -1,6 +1,7 @@
import getpass, time, json, sys, signal, os
import archinstall
from archinstall.lib.hardware import hasUEFI
+from archinstall.lib.profiles import Profile
"""
This signal-handler chain (and global variable)
@@ -167,7 +168,7 @@ def ask_user_questions():
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):
- archinstall.arguments['profile'] = archinstall.select_profile(archinstall.list_profiles())
+ archinstall.arguments['profile'] = archinstall.select_profile(filter(lambda profile: (Profile(None, profile).is_top_level_profile()), archinstall.list_profiles()))
else:
archinstall.arguments['profile'] = archinstall.list_profiles()[archinstall.arguments['profile']]