Commit Graph

776 Commits

Author SHA1 Message Date
Dylan M. Taylor 5b1f30383b
Update version for 2.2.0 final 2021-05-27 14:42:24 -04:00
Dylan Taylor 8ddb9153c7 Fix is_vm detection on real hardware 2021-05-27 14:15:27 -04:00
Dylan M. Taylor 712d299627
Change ordering of example profiles 2021-05-27 05:34:28 -04:00
nullrequest 544eccaada
made it more clear
using Redecorating's suggestion in the discord
2021-05-27 10:13:23 +05:30
nullrequest c3b703bc2a
Make it more clear what the desktop profile does 2021-05-27 09:34:55 +05:30
Anton Hvornum 7daaf1143f Fixes #489 2021-05-23 14:18:49 +02:00
Anton Hvornum 43792cd7f3 Spelling error 2021-05-23 11:37:51 +02:00
Anton Hvornum 0b3e822795 Merge branch 'master' of github.com:archlinux/archinstall 2021-05-23 10:32:43 +02:00
Anton Hvornum 9fa9520ac9 Version bump for tagging. 2021-05-23 10:32:40 +02:00
Yash Tripathi 194d45ad2d
removed debug code 2021-05-23 11:52:52 +05:30
Yash Tripathi 48f1e62427 bringing back the old method for parsing extra args as config values 2021-05-23 11:38:53 +05:30
Anton Hvornum 1bc218b2e1 Forgot an important import. 2021-05-22 20:57:36 +02:00
Anton Hvornum 662ffb05b2 Fixes docstrings. 2021-05-22 20:51:59 +02:00
Anton Hvornum 1552cc8277 Re-worked the select_profile() user interaction. It no longer takes options as a parameter, instead it sources the profiles available, prints a curated list but allows for any input that is a valid profile. 2021-05-22 20:50:02 +02:00
Anton Hvornum f2e7b1440a Since SysCommand() wraps SysCommandWorker(), but SysCommand() doesn't use contexts, we have to flush the output manually here to avoid newlines not being before the next output. 2021-05-22 19:58:40 +02:00
advaithm 439abc4402
fixed bootloader flag not being set 2021-05-22 18:18:05 +05:30
Anton Hvornum 54a693be4f
Merge pull request #495 from dylanmtaylor/patch-1
Add ArchInstall user-agent to mirror requests
2021-05-21 09:29:50 +02:00
Anton Hvornum 60cdb2ab87
Merge pull request #485 from dylanmtaylor/post-installation-scripts
Implement post-installation commands
2021-05-21 09:29:04 +02:00
Dylan M. Taylor ac2b1084e8
Add ArchInstall user-agent to mirror requests 2021-05-20 18:00:44 -04:00
Dylan Taylor e6befe53c7 Use {installation.target} in custom commands handler 2021-05-20 17:55:40 -04:00
Dylan Taylor 5652ba20ae Extract custom-commands function into general.py 2021-05-20 17:12:41 -04:00
JakobDev c63fdf0148
Use pure Python code in filter_mirrors_by_region 2021-05-20 22:40:27 +02:00
Anton Hvornum c2f3b9e208
Merge pull request #488 from SimonPe/patch-1
look for default profiles in correct location
2021-05-20 09:13:58 +02:00
Anton Hvornum c0458cf641
Merge pull request #484 from dylanmtaylor/patch-1
Have the configuration file request identify itself as coming from ArchInstall
2021-05-20 09:12:06 +02:00
Anton Hvornum 71ab52178c
Merge pull request #481 from dylanmtaylor/minor-formatting-cleanup
Some very minor cleanup
2021-05-20 08:07:02 +02:00
Simon Peeters 8fc236ac77
look for default profiles in correct location
The default `profiles` directory is a sibling of the `lib` directory, not of `storage.py` itself.
2021-05-20 03:00:57 +02:00
Dylan M. Taylor 5b0f918d1b
Have the configuration file request identify itself as coming from ArchInstall
This is necessary to allow proper filtering of these requests server-side, and some services block urllib requests (known issue with Cloudflare).
2021-05-19 18:16:28 -04:00
Dylan Taylor b94fee2242 very minor whitespace fixes 2021-05-19 17:20:46 -04:00
Dylan Taylor c1cd845d07 Added support for getting configuration from a URL 2021-05-19 17:06:42 -04:00
Yash Tripathi bbb4599165
Added support for getting configuration from a config file (#364)
* 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-19 21:31:58 +02:00
Anton Hvornum 49e6cbdc54
Reworking SysCommand & Moving to localectl for locale related activities
* 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-19 16:45:13 +02:00
Dylan Taylor da0da729c5 Proofreading: Fix misc. spelling and grammar issues 2021-05-18 09:36:22 -04:00
Dylan M. Taylor 596c068f9d
Remove unreachable code 2021-05-18 08:32:30 -04:00
Dylan M. Taylor c14ee42bff
Remove PermissionError since it shadows the built-in of the same name 2021-05-18 08:27:59 -04:00
Anton Hvornum f56bfd5ab8
Merge pull request #468 from dylanmtaylor/patch-3
Add missing urllib.error import
2021-05-18 07:25:21 +00:00
Anton Hvornum fb8bb98b83 Incorrect variable names being used from copy paste. 2021-05-18 09:21:18 +02:00
Dylan M. Taylor 9cae2374a8 Add missing urllib.error import
Fixes an unresolved reference
Add missing urllib.error import
2021-05-17 21:55:48 -04:00
Anton Hvornum d0bc166e7e
Compliment to #461 and #459: is_vm() also outputted 'kvm'. This should fix that. 2021-05-18 00:28:59 +02:00
Anton Hvornum e0561641f6
Converted from subprocess.check_output() to SysCommand() to hide cpu_vendor() output. 2021-05-18 00:21:48 +02:00
Anton Hvornum e23fffe288 Reverted 2afc317. Using Path().unlink() instead on ucode if they exist. 2021-05-17 21:59:42 +02:00
Anton Hvornum 2afc31715e
Adding a pacman --overwrite declaration for ucodes. 2021-05-17 21:27:31 +02:00
Anton Hvornum 9f14f2cc53
Merge pull request #456 from dylanmtaylor/patch-4
Add mirror reachability check
2021-05-16 14:02:49 +00:00
Dylan M. Taylor 22fc18dc46 Add mirror reachability check
Needed error handling
Fix internet connection text not showing up and make it red
2021-05-15 22:53:58 -04:00
Dylan M. Taylor b3c06092b9
Delete tts.py
This is an empty file, and as far as I can tell it's unused.
2021-05-15 20:18:18 -04:00
Dylan Taylor 0ce2ffa4cf Fix some variable shadowing issues 2021-05-15 17:52:12 -04:00
Dylan Taylor 1796bbb918 Perform refactoring to PEP 8 naming conventions 2021-05-15 17:50:28 -04:00
Dylan Taylor 81423330aa Merge branch 'lxqt-lightdm' into formatting2 2021-05-15 17:31:14 -04:00
Dylan M. Taylor 0e5b0edd6c
reintroduce this line, seems to be needed for install to work despite being detected as unused 2021-05-15 16:23:11 -04:00
Dylan M. Taylor 720cb9b0b7
Fix missing Optional import 2021-05-15 16:21:02 -04:00
Dylan Taylor 8e86a955ec archinstall/__init__.py changes 2021-05-15 15:43:02 -04:00