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 19:28:49 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-07 19:28:49 -0400
commit75008f3f0e49f3b8ae11a983b04791bc24b0c7bc (patch)
treec58f42e555ac81f8526022e0ba73e175e8025450 /examples
parentb7891f500350d0069699a5e7e23f81df2eea952c (diff)
parent10649639ac045ae2396265bbbd65af9b78d89a5a (diff)
Merge remote-tracking branch 'dylanmtaylor/minimal-install-profile' into torxed-v2.2.0
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 2e704b94..55855d1b 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']]