added _post_install hook.
This commit is contained in:
parent
6b5b3180f3
commit
230c5709cc
|
|
@ -1,4 +1,4 @@
|
||||||
import archinstall
|
import archinstall, subprocess
|
||||||
|
|
||||||
def _prep_function(*args, **kwargs):
|
def _prep_function(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
@ -16,6 +16,14 @@ def _prep_function(*args, **kwargs):
|
||||||
else:
|
else:
|
||||||
print('Deprecated (??): xorg profile has no _prep_function() anymore')
|
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':
|
if __name__ == 'i3-wm':
|
||||||
# Install dependency profiles
|
# Install dependency profiles
|
||||||
installation.install_profile('xorg')
|
installation.install_profile('xorg')
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import archinstall
|
import archinstall, subprocess
|
||||||
|
|
||||||
def _prep_function(*args, **kwargs):
|
def _prep_function(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
@ -15,6 +15,13 @@ def _prep_function(*args, **kwargs):
|
||||||
return imported._prep_function()
|
return imported._prep_function()
|
||||||
else:
|
else:
|
||||||
print('Deprecated (??): xorg profile has no _prep_function() anymore')
|
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':
|
if __name__ == 'i3-wm':
|
||||||
# Install dependency profiles
|
# Install dependency profiles
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue