added _post_install hook.

This commit is contained in:
advaithm 2021-04-06 07:21:11 +05:30 committed by Dylan Taylor
parent 6b5b3180f3
commit 230c5709cc
2 changed files with 17 additions and 2 deletions

View File

@ -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')

View File

@ -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