Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-21 11:01:48 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-21 11:01:48 +0000
commit06f8c46b3daaf0730a094c4cca26bd1fab6822af (patch)
treeeac7a2d721055a0204bafb68a9a3a2a723dbb0ca /archinstall/lib/installer.py
parente438e1bbde75bccb8cf8390ca1ca1e99f36d2806 (diff)
Added some more documentation. Also added a __init__.py in the git repo so that cloning enables importing as well. This should enable both git clone to work as well as pypi.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index d53cc961..7f9aba71 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -7,6 +7,29 @@ from .user_interaction import *
from .profiles import Profile
class Installer():
+ """
+ `Installer()` is the wrapper for most basic installation steps.
+ It also wraps :py:func:`~archinstall.Installer.pacstrap` among other things.
+
+ :param partition: Requires a partition as the first argument, this is
+ so that the installer can mount to `mountpoint` and strap packages there.
+ :type partition: class:`archinstall.Partition`
+
+ :param boot_partition: There's two reasons for needing a boot partition argument,
+ The first being so that `mkinitcpio` can place the `vmlinuz` kernel at the right place
+ during the `pacstrap` or `linux` and the base packages for a minimal installation.
+ The second being when :py:func:`~archinstall.Installer.add_bootloader` is called,
+ A `boot_partition` must be known to the installer before this is called.
+ :type boot_partition: class:`archinstall.Partition`
+
+ :param profile: A profile to install, this is optional and can be called later manually.
+ This just simplifies the process by not having to call :py:func:`~archinstall.Installer.install_profile` later on.
+ :type profile: str, optional
+
+ :param hostname: The given /etc/hostname for the machine.
+ :type hostname: str, optional
+
+ """
def __init__(self, partition, boot_partition, *, profile=None, mountpoint='/mnt', hostname='ArchInstalled'):
self.profile = profile
self.hostname = hostname