Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-08 06:10:28 +0000
committerGitHub <noreply@github.com>2021-04-08 06:10:28 +0000
commitb2b9ac2d405698bb259ff338b159f94bdcb0f87d (patch)
treec58f42e555ac81f8526022e0ba73e175e8025450 /archinstall/lib
parentb7891f500350d0069699a5e7e23f81df2eea952c (diff)
parent10649639ac045ae2396265bbbd65af9b78d89a5a (diff)
Merge pull request #219 from dylanmtaylor/minimal-install-profile
Add minimal profile and implement idea of 'top-level' profiles
Diffstat (limited to 'archinstall/lib')
-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:
"""