Fix typos.

This commit is contained in:
Varun Madiath 2020-10-19 21:30:51 -04:00
parent f32f1e238a
commit da59378cc4
15 changed files with 43 additions and 33 deletions

View File

@ -17,7 +17,7 @@ Or simply `git clone` the repo as it has no external dependencies *(but there ar
Or run the pre-compiled binary attached in every release as `archinstall-v[ver].tar.gz`. Or run the pre-compiled binary attached in every release as `archinstall-v[ver].tar.gz`.
There's also `PKGBUILD`'s for all the above scenarios. There's also `PKGBUILD`'s for all the above scenarios.
And they're also availale as Arch Linux packages over at the unofficial mirror [https://archlinux.life](https://archlinux.life/). And they're also available as Arch Linux packages over at the unofficial mirror [https://archlinux.life](https://archlinux.life/).
## Running the [guided](examples/guided.py) installer ## Running the [guided](examples/guided.py) installer

View File

@ -21,7 +21,7 @@ def find_examples():
def run_as_a_module(): def run_as_a_module():
""" """
Ssince we're running this as a 'python -m archinstall' module OR Since we're running this as a 'python -m archinstall' module OR
a nuitka3 compiled version of the project. a nuitka3 compiled version of the project.
This function and the file __main__ acts as a entry point. This function and the file __main__ acts as a entry point.
""" """

View File

@ -100,7 +100,7 @@ class sys_command():#Thread):
self.exec_dir = f'{self.cwd}/{os.path.basename(self.cmd[0])}_workingdir' self.exec_dir = f'{self.cwd}/{os.path.basename(self.cmd[0])}_workingdir'
if not self.cmd[0][0] == '/': if not self.cmd[0][0] == '/':
# "which" doesn't work as it's a builin to bash. # "which" doesn't work as it's a builtin to bash.
# It used to work, but for whatever reason it doesn't anymore. So back to square one.. # It used to work, but for whatever reason it doesn't anymore. So back to square one..
#log('Worker command is not executed with absolute path, trying to find: {}'.format(self.cmd[0]), origin='spawn', level=5) #log('Worker command is not executed with absolute path, trying to find: {}'.format(self.cmd[0]), origin='spawn', level=5)
@ -247,9 +247,10 @@ class sys_command():#Thread):
with open(f'{self.cwd}/trace.log', 'wb') as fh: with open(f'{self.cwd}/trace.log', 'wb') as fh:
fh.write(self.trace_log) fh.write(self.trace_log)
def prerequisit_check():
if not os.path.isdir('/sys/firmware/efi'): def prerequisite_check():
raise RequirementError('Archinstall only supports machines in UEFI mode.') if not os.path.isdir("/sys/firmware/efi"):
raise RequirementError("Archinstall only supports machines in UEFI mode.")
return True return True

View File

@ -141,8 +141,10 @@ class Installer():
self.pacstrap(self.base_packages) self.pacstrap(self.base_packages)
self.genfstab() self.genfstab()
with open(f'{self.mountpoint}/etc/fstab', 'a') as fstab: with open(f"{self.mountpoint}/etc/fstab", "a") as fstab:
fstab.write('\ntmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0\n') # Redundant \n at the start? who knoes? fstab.write(
"\ntmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0\n"
) # Redundant \n at the start? who knows?
## TODO: Support locale and timezone ## TODO: Support locale and timezone
#os.remove(f'{self.mountpoint}/etc/localtime') #os.remove(f'{self.mountpoint}/etc/localtime')

View File

@ -170,7 +170,7 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
:rtype: dict :rtype: dict
""" """
# TODO: Support multiple options and country ycodes, SE,UK for instance. # TODO: Support multiple options and country codes, SE,UK for instance.
regions = sorted(list(mirrors.keys())) regions = sorted(list(mirrors.keys()))
selected_mirrors = {} selected_mirrors = {}

View File

@ -4,7 +4,7 @@ archinstall.Application
======================= =======================
This class enables access to pre-programmed application configurations. This class enables access to pre-programmed application configurations.
This is not to be confused with :ref:`archinstall.Profile` which is for pre-prgrammed profiles for a wider set of installation sets. This is not to be confused with :ref:`archinstall.Profile` which is for pre-programmed profiles for a wider set of installation sets.
.. autofunction:: archinstall.Application .. autofunction:: archinstall.Application

View File

@ -4,7 +4,7 @@ archinstall.Profile
=================== ===================
This class enables access to pre-programmed profiles. This class enables access to pre-programmed profiles.
This is not to be confused with :ref:`archinstall.Application` which is for pre-prgrammed application profiles. This is not to be confused with :ref:`archinstall.Application` which is for pre-programmed application profiles.
Profiles in general is a set or group of installation steps. Profiles in general is a set or group of installation steps.
Where as applications are a specific set of instructions for a very specific application. Where as applications are a specific set of instructions for a very specific application.

View File

@ -8,7 +8,7 @@ The way the library is invoked in module mode is limited to executing scripts un
It's there for important to place any script or profile you wish to invoke in the examples folder prior to building and installing. It's there for important to place any script or profile you wish to invoke in the examples folder prior to building and installing.
Pre-requisits Pre-requisites
------------- -------------
We'll assume you've followed the `installing.python.manual`_ method. We'll assume you've followed the `installing.python.manual`_ method.

View File

@ -3,14 +3,14 @@
Guided installation Guided installation
=================== ===================
This is the installer you'll encounter on the *(currently)* inofficial Arch Linux Archinstall ISO found on `archlinux.life <https://archlinux.life>`_. This is the installer you'll encounter on the *(currently)* unofficial Arch Linux Archinstall ISO found on `archlinux.life <https://archlinux.life>`_.
You'll obviously need a physical machine or a virtual machine and have a basic understanding of how ISO-files work, where and how to mount them in order to boot the installer. You'll obviously need a physical machine or a virtual machine and have a basic understanding of how ISO-files work, where and how to mount them in order to boot the installer.
It runs you through a set of questions in order to determine what the system should look like. Then the guided installer performs the required installation steps for you. Some additional steps might show up depending on your chosen input at some of the steps - those steps should be self explanatory and won't be covered here. It runs you through a set of questions in order to determine what the system should look like. Then the guided installer performs the required installation steps for you. Some additional steps might show up depending on your chosen input at some of the steps - those steps should be self explanatory and won't be covered here.
.. note:: .. note::
There are some limitations with the installer, such as that it will not configure WiFi during the installation proceedure. And it will not perform a post-installation network configuration either. So you need to read up on `Arch Linux networking <https://wiki.archlinux.org/index.php/Network_configuration>`_ to get that to work. There are some limitations with the installer, such as that it will not configure WiFi during the installation procedure. And it will not perform a post-installation network configuration either. So you need to read up on `Arch Linux networking <https://wiki.archlinux.org/index.php/Network_configuration>`_ to get that to work.
Features Features
-------- --------
@ -18,7 +18,7 @@ Features
The guided installer currently supports: The guided installer currently supports:
* *(optional)* Setting up disk encryption * *(optional)* Setting up disk encryption
* *(optional)* Installing some simpel desktop environments * *(optional)* Installing some simple desktop environments
* Choosing between a super-user or root based user setup * Choosing between a super-user or root based user setup
Installation steps Installation steps

View File

@ -3,7 +3,7 @@
Python library Python library
============== ==============
Archinstall shipps on `PyPi <https://pypi.org/>`_ as `archinstall <pypi.org/project/archinstall/>`_. Archinstall ships on `PyPi <https://pypi.org/>`_ as `archinstall <pypi.org/project/archinstall/>`_.
But the library can be installed manually as well. But the library can be installed manually as well.
.. warning:: .. warning::

View File

@ -9,10 +9,12 @@ SIG_TRIGGER = False
def kill_handler(sig, frame): def kill_handler(sig, frame):
print() print()
exit(0) exit(0)
def sig_handler(sig, frame): def sig_handler(sig, frame):
global SIG_TRIGGER global SIG_TRIGGER
SIG_TRIGGER = True SIG_TRIGGER = True
signal.signal(signal.SIGINT, kill_handler) signal.signal(signal.SIGINT, kill_handler)
original_sigint_handler = signal.getsignal(signal.SIGINT) original_sigint_handler = signal.getsignal(signal.SIGINT)
signal.signal(signal.SIGINT, sig_handler) signal.signal(signal.SIGINT, sig_handler)
@ -111,7 +113,8 @@ while 1:
continue continue
break break
if 'users' not in archinstall.storage['_guided']: archinstall.storage['_guided']['users'] = [] if 'users' not in archinstall.storage['_guided']:
archinstall.storage['_guided']['users'] = []
archinstall.storage['_guided']['users'].append(new_user) archinstall.storage['_guided']['users'].append(new_user)
new_user_passwd = getpass.getpass(prompt=f'Password for user {new_user}: ') new_user_passwd = getpass.getpass(prompt=f'Password for user {new_user}: ')
@ -129,13 +132,17 @@ while 1:
if profile: if profile:
archinstall.storage['_guided']['profile'] = profile archinstall.storage['_guided']['profile'] = profile
if type(profile) != str: # Got a imported profile if type(profile) != str: # Got a imported profile
archinstall.storage['_guided']['profile'] = profile[0] # The second return is a module, and not a handle/object. archinstall.storage['_guided']['profile'] = profile[0] # The second return is a module, and not a handle/object.
if not profile[1]._prep_function(): if not profile[1]._prep_function():
archinstall.log(' * Profile\'s preperation requirements was not fulfilled.', bg='black', fg='red') archinstall.log(
' * Profile\'s preparation requirements was not fulfilled.',
bg='black',
fg='red'
)
continue continue
profile = profile[0]._path # Once the prep is done, replace the selected profile with the profile name ("path") given from select_profile() profile = profile[0]._path # Once the prep is done, replace the selected profile with the profile name ("path") given from select_profile()
break break
else: else:
break break

View File

@ -1,4 +1,4 @@
# A desktop environemtn using "Awesome" window manager. # A desktop environment using "Awesome" window manager.
import archinstall import archinstall

View File

@ -1,4 +1,4 @@
# A desktop environemtn using "Awesome" window manager. # A desktop environment using "Gnome"
import archinstall import archinstall

View File

@ -1,4 +1,4 @@
# A desktop environemtn using "Awesome" window manager. # A desktop environement using "KDE".
import archinstall, os import archinstall, os

View File

@ -1,4 +1,4 @@
# A desktop environemtn using "Awesome" window manager. # A system with "xorg" installed
import archinstall, os import archinstall, os