Commit Graph

49 Commits

Author SHA1 Message Date
Anton Hvornum f794cad7bb Forgot to remove self. reference when copying some code. 2020-11-04 23:36:54 +00:00
Anton Hvornum b98850819b Added multiple log features.
* [Reintroduced](f64a605449/archinstall.py (L57-L71)) log levels
* Created a global log file definition
* Optional support for `python-systemd`'s journald handler.
* Optional file output that has a globally configurable definition, that archinstall will honor in `archinstall.storage['logfile']`.
2020-11-04 22:41:50 +01:00
Varun Madiath 5ded22a5d0 Fix some PEP-8 errors. 2020-10-19 23:07:35 -04:00
Varun Madiath e4f363ce7d Fix typo in function parameter
`suppress_errors` was previously spelt `surpress_errors`
2020-10-19 23:04:14 -04:00
Varun Madiath da59378cc4 Fix typos. 2020-10-19 23:04:14 -04:00
Anton Hvornum 06ee896c6c Changed my mind, reverting to the original sig-handler is better. 2020-10-18 21:23:01 +02:00
Anton Hvornum db2e5d721c Revert to a some what default sig-kill handler. (needs some adjustments just to clean up things, but I think it will do for now) 2020-10-18 21:22:05 +02:00
Anton Hvornum ad2adec834 Reverted some changes. It was to 'complicated' to get status of the sys.stdin buffer while it did not contain a new-line character. So reverted that code. Here is an interesting read, but a bit to much code for a simple guided template: https://stackoverflow.com/a/41459565/929999 2020-10-18 21:19:08 +02:00
Anton Hvornum 2df4347b44 Added a slightly convoluted but non-intrusive 'are you sure?' on Ctrl+C/any input. 2020-10-18 20:49:44 +02:00
Anton Hvornum 479881a5a2 Tweaked the output a little. 2020-10-18 20:36:14 +02:00
Anton Hvornum 58201d7234 Tweaked the _guided storage. One variable was a loaded module, which is hard to convert to json in a meaningful way. 2020-10-18 20:32:26 +02:00
Anton Hvornum fa4be63e48 Forgot an import, as well as made BlockDevice() have less verbose output on json.dumps. 2020-10-18 20:26:09 +02:00
Anton Hvornum d5effa744f Added a JSON serializer for certain non-json objects. 2020-10-18 20:17:45 +02:00
Anton Hvornum 23365d2d8e Added a test version trying to solve #43. 2020-10-18 20:00:53 +02:00
Anton Hvornum a69e1af4f1 Added error handling to guided.py when not selecting a profile to install. 2020-10-18 13:25:13 +02:00
Anton Hvornum 4b1f22bf91 Added error handling to guided.py when not selecting a profile to install. 2020-10-18 13:23:51 +02:00
Anton Hvornum dafe304b00 Added error handling to guided.py when not selecting a profile to install. 2020-10-18 13:21:42 +02:00
Anton Hvornum 9c5d1e9891 Added error handling to guided.py when not selecting a profile to install. 2020-10-18 13:20:58 +02:00
Anton Hvornum ea84565f86 Implementing error handling for #50. So that the errors do not come at the very end, but in the beginning right after the user inputted something (quicker feedback to the user). 2020-10-18 10:03:26 +02:00
Anton Hvornum 54e2161e29 Tweaked the import logic so that the Imported() class returns the actual module imported when executing the import, rather than returning itself. Also fixed awesome so that it loads and looks for _prep_function() with a safe and correct namespace 2020-09-30 09:56:35 +00:00
Anton Hvornum 85fd06fa8a Finalized magic function _prep_function(). Gets returned when a profile is imported through archinstall.select_profile() user-interaction helper function. Asks for additional user-input right away rather than half way into the installation. This makes sure user input is taken care of before starting the installation. Although it complicates the code layout a tiny bit. Profiles need a __name__ and a _prep_function combo in order to be safely executed by select_profile(). select_profile() will not attempt to run or execute the code in any way unless those to conditions are met. In theory :) 2020-09-30 09:11:36 +00:00
Anton Hvornum f896342147 Adding a baseline xorg profile that can be called from other profiles. Such as the awesome profile, and in the future gnome and kde. 2020-09-29 22:09:28 +00:00
Anton Hvornum 6338e7116e Removed AUR support (Moving to a separate project, possibly as an addon layer later) 2020-09-29 21:01:10 +00:00
Anton Hvornum eb4b0f09ef Fixed #48 - Removed AUR question in the guided installer. (library still supports it, but will be hidden from common users) 2020-09-07 15:45:42 +02:00
Anton Hvornum 911d876cb6 Made waiting for reflector mandatory. Which should fix issue #47. 2020-09-01 15:38:23 +02:00
Anton Hvornum 4413fdcf81 systemctl spits out some colors, so logic had to be changed. 2020-09-01 14:57:21 +02:00
Anton Hvornum a22a859b7f Debugging 2020-09-01 14:55:49 +02:00
Anton Hvornum 4dcafa7ec8 Tweaking the mirror selection vs automatic mirror processes. 2020-09-01 14:52:59 +02:00
Anton Hvornum 8494014c3b Debugging a bit 2020-09-01 14:47:22 +02:00
Anton Hvornum 8daae75a78 Adding service logic. Checking if reflector has finished before we select custom mirrors (if any) 2020-09-01 14:33:55 +02:00
Anton Hvornum e6293b7d44 Forgot to send with mirrors in the function call perform_installation() in guided template. 2020-09-01 14:06:36 +02:00
Anton Hvornum 323af39ed5 Added archinstall.Installer().set_mirrors, which allows to modify the mirrors in the finished installed medium. 2020-09-01 14:04:47 +02:00
Anton Hvornum 5bba102c45 Added list_mirrors() and prepared for selecting mirrors in guided.py 2020-09-01 12:22:44 +02:00
Anton Hvornum 677533f765 Added the option to set keyboard layout of installation. Not only on the live medium 2020-09-01 10:33:18 +02:00
Anton Hvornum 8f35f44939 Added locale helpers in terms of keyboard language/layout. 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-09-01 09:01:14 +02:00
Anton Hvornum b91699c0e5 Forgot self. in Installer 2020-08-31 21:12:19 +02:00
Anton Hvornum 129f7f23fa Fixed a conditional logic issue. It didn't break out of user creation when it was supposed to. 2020-08-31 21:09:01 +02:00
Anton Hvornum 35fc177345 Adding a different text on the user step if root is disabled. Also adding user as sudo if that's the case. 2020-08-31 20:46:38 +02:00
Anton Hvornum 96e8cc4d5b Added a timeout on the HTTPS POST status after a successful install. 2020-08-20 22:16:53 +00:00
Anton Hvornum f6f5875892 Added a unattended installer. Fixed list_profiles() to not include .py ending in the profile name, it's already in the ['path'] defintion. Renamed desktop.py to awesome.py as it more accurately describes what's being installed. desktop should be reserved to a default desktop environment that's more new-user-friendly. 2020-08-20 19:47:39 +00:00
Anton Hvornum 056b800c8e Starting to add networking helpers in archinstall. First up is 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-08-20 17:08:13 +00:00
Anton Hvornum 13e9953630 removed some non-essnetial packages. re-structured the guided installer to ask for stuff first, then fire away. Tested encrypted/non-encrypted and both works. 2020-07-08 22:51:21 +00:00
Anton Hvornum ebcb5ae795 Fixed a bug where minimal_installation() didn't return anything. 2020-07-08 22:22:24 +00:00
Anton Hvornum 9fc13d0449 Reflecting change in /boot change 2020-07-08 17:46:20 +00:00
Anton Hvornum 5ab238569d mixed up the mount of /boot, now correctly mounts /boot before running pacstrap 2020-07-08 17:45:25 +00:00
Anton Hvornum 60f581319f Added pythons -m module support. __main__.py is the main module entry path, 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-07 23:56:17 +00:00
Anton Hvornum 0bc24699c1 Added colored output. Also tested non-encrypted installations and added ext4 support. 2020-07-07 21:59:09 +00:00
Anton Hvornum 78d4fe4fa1 Adding a guided installation profile. 2020-07-07 16:10:54 +00:00
Anton Hvornum 9866672b5e Moved the example installation to examples 2020-07-06 22:26:29 +02:00