Add minimal profile and implement idea of 'top-level' profiles
This commit is contained in:
parent
c07d63296b
commit
ea81759e40
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
import archinstall
|
||||
|
||||
is_top_level_profile = False
|
||||
|
||||
# New way of defining packages for a profile, which is iterable and can be used out side
|
||||
# of the profile to get a list of "what packages will be installed".
|
||||
__packages__ = ['nano', 'nemo', 'gpicview-gtk3', 'openssh', 'sshfs', 'htop', 'scrot', 'wget']
|
||||
|
||||
def _prep_function(*args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import archinstall, os
|
||||
|
||||
is_top_level_profile = True
|
||||
|
||||
def _prep_function(*args, **kwargs):
|
||||
"""
|
||||
Magic function called by the importing installer
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import archinstall
|
||||
|
||||
is_top_level_profile = False
|
||||
|
||||
def _prep_function(*args, **kwargs):
|
||||
"""
|
||||
Magic function called by the importing installer
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import archinstall, os
|
||||
|
||||
is_top_level_profile = False
|
||||
|
||||
# TODO: Remove hard dependency of bash (due to .bash_profile)
|
||||
|
||||
def _prep_function(*args, **kwargs):
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
# Used to do a minimal install
|
||||
|
||||
import archinstall, os
|
||||
|
||||
is_top_level_profile = True
|
||||
|
||||
def _prep_function(*args, **kwargs):
|
||||
"""
|
||||
Magic function called by the importing installer
|
||||
before continuing any further. It also avoids executing any
|
||||
other code in this stage. So it's a safe way to ask the user
|
||||
for more input before any other installer steps start.
|
||||
"""
|
||||
|
||||
# Do nothing here for now
|
||||
|
||||
if __name__ == 'minimal':
|
||||
"""
|
||||
This "profile" is a meta-profile.
|
||||
It is used for a custom minimal installation, without any desktop-specific packages.
|
||||
"""
|
||||
|
||||
# Do nothing here for now
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
import archinstall, os
|
||||
|
||||
is_top_level_profile = True
|
||||
|
||||
AVAILABLE_DRIVERS = {
|
||||
# Sub-dicts are layer-2 options to be selected
|
||||
# and lists are a list of packages to be installed
|
||||
|
|
|
|||
Loading…
Reference in New Issue