Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
AgeCommit message (Collapse)Author
2022-02-02Changed working version in master to v2.4.0-dev0Anton Hvornum
2022-02-01Issue923 (#927)Werner Llácer
* Correct definition of btrfs standard layout * Solving issue 923. Standarize keyword "wipe" to signal the need of formatting a FS * flake8 complains
2022-01-18Some issues at Guided.py (#878)Werner Llácer
* Solves issue #873 (error by key sys-language Now disk_layouts file contents are loaded before calling the menu * Solves issue #873 (error by key sys-language. Solution in previous commit was still too restrictive
2022-01-14Moved lib.plugin import to the topAnton Hvornum
2022-01-07Global menu (#806)Daniel
* Global menu * Fix flake8 * Refactor code * Add documentation * Fix flake8 * Add support for user flow mentioned in #799 * Move import * Fix flake8 (again) Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-01-02Adding a Pipewire application profile (#821)Anton Hvornum
* Adding a Pipewire application profile This to better manage the pipewire setup process and minimize guided a bit. This also adds the concept of @archinstall.plugin decorators to add a plugin in run-time. Which pipewire uses to detect user creation and enable the pipewire-pulse service for new users. * Forgot to run .install() on pipewire Application() * Backwards compatible variable insertion for installation session
2022-01-02Improved command line argument parsing (#725)Werner Llácer
* An update to PR 715, making the handling of the *--mount-point* parameter less error prone. I added a synomym (accepting the name both with underscore and dash) and ignoring when no value specified I added it explicitly to the list to accept both the --parm value and --parm=value syntax DOES NOT check the contents of the parameter * Explicitly set all the know parameters * Define explictly all parameters. Make all non explicitly defined parameters behave as standard parameters, with on exception, names are not changed Some cleanup of the code In guided.py the reference to the dry_run parameter is updated to the standard naming convention for parameters * Linter with flake8. corrections * Linter with flake8. corrections (II) * Linter with flake8. corrections (and III) * Added --disk_layout argument. Was missing I moved its loading from guided.py to __init__.py as it happens to the other json related arguments * Better handling of errors during processing of the --disk_layouts parameter. I define a routine to read an store a JSON file or stream. Tested on disk_layout * Expand the former commit to all JSON file arguments * Moved the function we created to read json files/streams to general.py. Add some comments * flake8. A reference now unneded * The merge process for the dry-run argument was causing the issue, not solving it The del is just a cleanup for version upgrade without consequence (I hope) * flake8 warning * Correcting the last correction . Worked for old config files, but only for them * New parameter parsing algorithm. More flexible and accepts multiple arguments (optionallY) plus some documentation effort * flake8 warning. For once is significant ( != None to not None)
2021-12-02Add simple menu for better UX (#660)Daniel
* Add simple menu for better UX * Add remove external dependency * Fix harddisk return value on skip * Table output for partitioning process * Switch partitioning to simple menu * fixup! Switch partitioning to simple menu * Ignoring complexity and binary operator issues Only in simple_menu.py * Added license text to the MIT licensed file * Added in versioning information * Fixed some imports and removed the last generic_select() from user_interaction. Also fixed a revert/merged fork of ask_for_main_filesystem_format() * Update color scheme to match Arch style better * Use cyan as default cursor color * Leave simple menu the same Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com> Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2021-11-24Set the version for master to 2.3.1 developmentDylan M. Taylor
2021-11-24Bumped the version to v2.3.0Anton Hvornum
2021-11-23Fix error at end of installation from missing method importDylan Taylor
2021-11-18Added an exception if configuration cannot be loaded, to avoid confusionAnton Hvornum
2021-11-13Adding in --mount-point argument, which overrides storage['MOUNT_POINT']Anton Hvornum
2021-07-18changed dry_run to dry-runYash Tripathi
2021-06-10added --dry-run flag (#570)Yash Tripathi
* added --dry-run flag
2021-06-06updated creds helpYash Tripathi
2021-06-06changed block locationYash Tripathi
2021-06-06added support for seperating credentials from configYash Tripathi
2021-06-02Adding more granular debuggingAnton Hvornum
2021-05-28Pulled in latest master changesAnton Hvornum
2021-05-28Update __version__ to become a dev-version againAnton Hvornum
To avoid accidental pypi snafu's
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