Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
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 /archinstall
parentb7891f500350d0069699a5e7e23f81df2eea952c (diff)
parent10649639ac045ae2396265bbbd65af9b78d89a5a (diff)
Merge remote-tracking branch 'dylanmtaylor/minimal-install-profile' into torxed-v2.2.0
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/profiles.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 39411553..7e76c891 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -177,6 +177,7 @@ class Profile(Script):
if hasattr(imported, '_prep_function'):
return True
return False
+
def has_post_install(self):
with open(self.path, 'r') as source:
source_data = source.read()
@@ -193,6 +194,11 @@ class Profile(Script):
if hasattr(imported, '_post_install'):
return True
+ def is_top_level_profile(self):
+ with open(self.path, 'r') as source:
+ source_data = source.read()
+ return 'top_level_profile = True' in source_data
+
@property
def packages(self) -> list:
"""