Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-06 07:21:11 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-08 20:56:45 -0400
commit230c5709cc56f4896c7220d768d1da0302bf2cc0 (patch)
tree821bff5e66e8579f5ad8cebdcc9b08e0c251ded2 /profiles
parent6b5b3180f31b4591c7359859cf692d538b47db20 (diff)
added _post_install hook.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/i3-gaps.py10
-rw-r--r--profiles/i3-wm.py9
2 files changed, 17 insertions, 2 deletions
diff --git a/profiles/i3-gaps.py b/profiles/i3-gaps.py
index bf8227ba..d9469dcd 100644
--- a/profiles/i3-gaps.py
+++ b/profiles/i3-gaps.py
@@ -1,4 +1,4 @@
-import archinstall
+import archinstall, subprocess
def _prep_function(*args, **kwargs):
"""
@@ -16,6 +16,14 @@ def _prep_function(*args, **kwargs):
else:
print('Deprecated (??): xorg profile has no _prep_function() anymore')
+def _post_install(*args, **kwargs):
+ """
+ Another magic function called after the system
+ has been installed.
+ """
+ print("the installation of i3 does not conatain any configuerations for the wm. in this shell you take your time should add your configuerations")
+ subprocess.check_call("arch-chroot /mnt",shell=True)
+
if __name__ == 'i3-wm':
# Install dependency profiles
installation.install_profile('xorg')
diff --git a/profiles/i3-wm.py b/profiles/i3-wm.py
index 168abb72..8b541bbf 100644
--- a/profiles/i3-wm.py
+++ b/profiles/i3-wm.py
@@ -1,4 +1,4 @@
-import archinstall
+import archinstall, subprocess
def _prep_function(*args, **kwargs):
"""
@@ -15,6 +15,13 @@ def _prep_function(*args, **kwargs):
return imported._prep_function()
else:
print('Deprecated (??): xorg profile has no _prep_function() anymore')
+def _post_install(*args, **kwargs):
+ """
+ Another magic function called after the system
+ has been installed.
+ """
+ print("the installation of i3-gaps does not conatain any configuerations for the wm. in this shell you should take your time to add your configuerations")
+ subprocess.check_call("arch-chroot /mnt",shell=True)
if __name__ == 'i3-wm':
# Install dependency profiles