Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-06 07:57:02 +0000
committerGitHub <noreply@github.com>2021-04-06 07:57:02 +0000
commit610d630863b949723431c230c4de8973dad8f60b (patch)
treed066f14065660c085d64d41e68e5029a3b06c0be /profiles
parentdc522b74b92cac38446501b8bb4fefc006ffda32 (diff)
parent4af3bbac2306146ce038666f2911690c655bcb63 (diff)
Merge pull request #190 from advaithm/master
post install hook
Diffstat (limited to 'profiles')
-rw-r--r--profiles/i3-gaps.py15
-rw-r--r--profiles/i3-wm.py16
2 files changed, 28 insertions, 3 deletions
diff --git a/profiles/i3-gaps.py b/profiles/i3-gaps.py
index bf8227ba..96d972e3 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,19 @@ 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.
+ """
+ installation.log("the installation of i3 does not conatain any configuerations for the wm. In this shell you should take your time to add your desiired configueration. Exit the shell once you are done to continue the installation.", fg="yellow")
+ try:
+ subprocess.check_call("arch-chroot /mnt",shell=True)
+ except subprocess.CallProcessError:
+ return False
+
+ return 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..66a7884e 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,18 @@ 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.
+ """
+ installation.log("the installation of i3 does not conatain any configuerations for the wm. In this shell you should take your time to add your desiired configueration. Exit the shell once you are done to continue the installation.", fg="yellow")
+ try:
+ subprocess.check_call("arch-chroot /mnt",shell=True)
+ except subprocess.CallProcessError:
+ return False
+
+ return True
if __name__ == 'i3-wm':
# Install dependency profiles
@@ -25,4 +37,4 @@ if __name__ == 'i3-wm':
i3 = archinstall.Application(installation, 'i3-wm')
i3.install()
# Auto start lightdm for all users
- installation.enable_service('lightdm') \ No newline at end of file
+ installation.enable_service('lightdm')