Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
AgeCommit message (Collapse)Author
2021-05-27Update version for 2.2.0 finalDylan M. Taylor
2021-05-24Adding support for --plugin=<plugin path>Anton Hvornum
2021-05-24Pleasing the linter godsAnton Hvornum
2021-05-24Added optional version handling. And improved error handling a bit.Anton Hvornum
2021-05-24Added better error handling.Anton Hvornum
2021-05-24Added a commentAnton Hvornum
2021-05-24Pleasing the linter godsAnton Hvornum
2021-05-24Removed empty whitespaceAnton Hvornum
2021-05-24Added redundant argument creation.Anton Hvornum
2021-05-24Syncing in latest changes from masterAnton Hvornum
2021-05-23Merge branch 'master' of github.com:archlinux/archinstallAnton Hvornum
2021-05-23Version bump for tagging.Anton Hvornum
2021-05-23removed debug codeYash Tripathi
2021-05-23bringing back the old method for parsing extra args as config valuesYash Tripathi
2021-05-19Have the configuration file request identify itself as coming from ArchInstallDylan M. Taylor
This is necessary to allow proper filtering of these requests server-side, and some services block urllib requests (known issue with Cloudflare).
2021-05-19Added support for getting configuration from a URLDylan Taylor
2021-05-19Added support for getting configuration from a config file (#364)Yash Tripathi
* added support for ingesting config * fixed condition to check key in dictionary * Removed redundant code, profile and desktop keys are now optional * Added base-config.json and support for pulling credentials from .env * added base config file and env file for users credentials * added silent install switch * added python-dotenv as a dependency * Updated Readme to include argparse changes as well as config ingestion * Updated Readme to include argparse changes as well as config ingestion * fixed typo in pyproject.toml * Replaced the magic __builtin__ global variable. This should fix mypy complaints while still retaining the same functionality, kinda. It's less automatic but it's also less of dark magic, which makes sense for anyone but me. * Fixes string index error. * Quotation error. * fixed initializing --script argument * added python-dotenv as a dependency * Installation can't be silent if config is not passed * fixed silent install help * fixed condition for ask_user_questions * reverted to creating profile object properly * Cleaned up and incorporated suggestions * added Profile import * added condition if Profile is null * fixed condition * updated parsing vars from argparse * removed loading users from .env * Reworking SysCommand & Moving to localectl for locale related activities (#4) * Moving to `localectl` rather than local file manipulation *(both for listing locales and setting them)*. * Swapped `loadkeys` for localectl. * Renamed `main` to `maim` in awesome profile. * Created `archinstall.Boot(<installation>)` which spawns a `systemd-nspawn` container against the installation target. * Exposing systemd.py's internals to archinstall global scope. * Re-worked `SysCommand` completely, it's now a wrapper for `SysCommandWorker` which supports interacting with the process in a different way. `SysCommand` should behave just like the old one, for backwards compatibility reasons. This fixes #68 and #69. * `SysCommand()` now has a `.decode()` function that defaults to `UTF-8`. * Adding back peak_output=True to pacstrap. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> Co-authored-by: Dylan Taylor <dylan@dylanmtaylor.com> Co-authored-by: Anton Hvornum <anton@hvornum.se> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> * fixed indent * removed redundant import * removed duplicate import * removed duplicate import Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se> Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2021-05-19Reworking SysCommand & Moving to localectl for locale related activitiesAnton Hvornum
* Moving to `localectl` rather than local file manipulation *(both for listing locales and setting them)*. * Swapped `loadkeys` for localectl. * Renamed `main` to `maim` in awesome profile. * Created `archinstall.Boot(<installation>)` which spawns a `systemd-nspawn` container against the installation target. * Exposing systemd.py's internals to archinstall global scope. * Re-worked `SysCommand` completely, it's now a wrapper for `SysCommandWorker` which supports interacting with the process in a different way. `SysCommand` should behave just like the old one, for backwards compatibility reasons. This fixes #68 and #69. * `SysCommand()` now has a `.decode()` function that defaults to `UTF-8`. * Adding back peak_output=True to pacstrap. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com> Co-authored-by: Dylan Taylor <dylan@dylanmtaylor.com>
2021-05-15reintroduce this line, seems to be needed for install to work despite being ↵Dylan M. Taylor
detected as unused
2021-05-15archinstall/__init__.py changesDylan Taylor
2021-05-15More formatting fixes to satisfy PEP 8Dylan Taylor
2021-05-15Cleanup imports and disk.py a bit moreDylan Taylor
2021-05-15Updating __version__ to dev1 for dev release.Anton Hvornum
2021-04-30Enabling --plugins filteringAnton Hvornum
2021-04-29Adding on_pacstrap hook for installation. As well as a plugins listing that ↵Anton Hvornum
plugins can hook in to in order to be called during specific on_<event> calls.
2021-04-29Cleaning up packages. (#374)Anton Hvornum
* Cleaning up packages. installer now relies on __packages__ definition. Which will work with external libs to more easily gather packages used by installer and profiles. * Added back the logic for the log message, where we inform if we're adding the boot loader to root or boot. * Added __package__ definition to profiles and the installer. These packages can be used as an indication from outside libraries of what could *possibly* be installed. For instance an offline-tool could source these, it would source more than it needed to, but it would give a quick rundown of what might be needed. * Removed import of __base__packages__ as it's now just __packages__ after a lot of stream-lining. * Explosion misspelling. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-15Change version to 2.2.0 in 2.2.0 branchDylan M. Taylor
2021-04-12moved to flit build systemadvaithm
2021-04-07Merging changes from master into feature branch to avoid future conflics.Anton Hvornum
2021-04-05Add console_scripts archinstall entry pointPyfisch
archinstall should be callable from the command-line. Previously this was achieved with a shell script, however Python packages contain a built in way to to this via the entry points mechanism.
2021-04-05Switch to setup.cfgPyfisch
Configure setup.cfg to find all Python packages. Add more metadata to package.
2021-03-25New feature: Profile() now supports .packages which returns any defined ↵Anton Hvornum
packages for that specific profile, as well as archinstall.__packages__ contain any packages that Installer() is responsible for. This can be used to quickly gather any required packages and dependencies by archinstall. Not all profiles have it yet, so .packages might return None.
2021-02-07Added in argument support to archinstall for easier testing and debuggingAnton Hvornum
2021-01-25Created an embryo for hardware detection. Supports detecting WiFi and UEFI. ↵Anton Hvornum
This fixes #44 and is a start for #82.
2020-10-19Fix some PEP-8 errors.Varun Madiath
2020-10-18Added a session-storag. This is in an attempt to build away some magic ↵Anton Hvornum
functionality that might otherwise be hard to understand/maintain over a long period of time. Using this in profiles/desktop.py as a test.
2020-10-18Reverted TTS implementation from 35913c4. Since blind people use screen ↵Anton Hvornum
readers for this functionality. Will have a look at http://www.linux-sppeakup.org/.
2020-10-11Added imports for `archinstall.TTS()` as well as added optinal depends for ↵Anton Hvornum
`PKGBUILD` files.
2020-09-30First complete draft of the documentation. Some autodocs are still ↵Anton Hvornum
unpopulated but will be done via code and not reST chapters.
2020-09-01Adding service logic. Checking if reflector has finished before we select ↵Anton Hvornum
custom mirrors (if any)
2020-09-01Added locale helpers in terms of keyboard language/layout. ↵Anton Hvornum
archinstall.list_keyboard_languages(), archinstall.search_keyboard_layout() and archinstall.set_keyboard_language() work together to help listing, finding and setting a keyboard layout in terminals. Won't work for X-frontends, but will do for CLI installation methods. Added a language selector-helper-function with a crude search functionality. Added all this to the guided template.
2020-08-20Starting to add networking helpers in archinstall. First up is ↵Anton Hvornum
archinstall.getHwAddr(ifname) which returns the mac of a interface name. second is archinstall.list_interfaces() which lists all the local MAC addresses and which interface it is bound to. Also starting to add the unattended installer back step by step. Currently with one MAC profile. The MAC profile filtering/detection has also been added in archinstall.list_profiles() - it will filter out all MAC address-specific profiles when called, unless a MAC matches a profile or filter_irrelevant_macs=False is given.
2020-07-21Added a set_timezone() and fixed set_locale() in the Installer() class. Also ↵Anton Hvornum
added a mirrors.py helper to rudimentary set mirror data on the installer host
2020-07-07Added pythons -m module support. __main__.py is the main module entry path, ↵Anton Hvornum
and setup.py now includes the examples (which as been renamed for more convenient module importing) which - enables __main__.py to locate the examples and import them via importlib and execute them.
2020-07-07Added colored output. Also tested non-encrypted installations and added ext4 ↵Anton Hvornum
support.
2020-07-06Reworked final preparations for working with profiles and installing them.Anton Hvornum
2020-07-06Converted the lib to a pip supported structure to make packaging easier. ↵Anton Hvornum
Also tweaked some minor issues and added the AUR function