Anton Hvornum
81822e6444
Added error handling to sys_command's peak function.
2021-04-04 15:13:06 +02:00
Anton Hvornum
2f6a71756a
Moved import due to circular imports.
2021-04-04 15:08:06 +02:00
Anton Hvornum
0d9519a729
Added functionality towards #155 . It's not a progress bar per sae, but it will show the last line outputted by commands enabling peaking of the ongoing process.
2021-04-04 13:27:58 +02:00
kpcyrd
4221473e67
Support passing commands as lists
2021-04-02 20:03:38 +02:00
Anton Hvornum
becd29fa54
Also setting cwd (bad choice of name) to the workdir if one was specified. Which makes the trace.log to end up in the workdir as well.
2021-03-23 14:22:38 +01:00
Anton Hvornum
b672efdf6b
Enabling archinstall.sys_command() to get a working directory when executing. The sys_command() is working pretty well for this very specific need, but this is an attempt to making it a bit more generic. A more general overhaul of the command should be done at some point.
2021-03-23 14:18:03 +01:00
Anton Hvornum
f589750a3c
Tweaked SysCallError() exception to include the exit code in a machine readable manner. Since it's useful as an indicator where calls might go wrong and for what reason.
2021-03-14 12:16:46 +01:00
Anton Hvornum
c5694393c6
Fixed the JSON_Encoder. The issue was that dictionaries are mutable, and dumping dictionaries and replacing keys also replaces the original value.
2021-03-08 15:10:58 +01:00
Anton Hvornum
a9ce3e5390
Testing auto-filter in the JSON encoder based on ! points markering sensitive data.
2021-02-17 14:54:45 +01:00
Anton Hvornum
435d2f687e
Added some more fields to the configuration output, as well as added a better fail safe for the logging output. Any exception during the installation will be caught by __exit__ in Installer(), hopefully.
2021-01-25 00:09:34 +01:00
Anton Hvornum
21cfe5708c
Fixing a strip glitch in `sys_command()` causing certain output to get truncated in unwanted places (like fstab)
2020-12-07 20:36:06 +01:00
Anton Hvornum
f594e6638a
Fixed level issues on log output. Also tweaked it so that all log rows come to the log file, but not nessecarily the interactive screen (tty/journald). Also tweaked certain log messages to be printed vs not printed.
2020-11-04 23:53:39 +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
3d4eaec466
Forgot an import
2020-10-18 20:19:21 +02:00
Anton Hvornum
17a70eb9f4
Removed a stub function
2020-10-18 20:18:20 +02:00
Anton Hvornum
d5effa744f
Added a JSON serializer for certain non-json objects.
2020-10-18 20:17:45 +02:00
Anton Hvornum
2f5aa052a1
Added text-to-speach, untested but the base is now added. It routes through if available. And can be accessed with directly if needed.
2020-10-11 14:02:01 +02:00
Anton Hvornum
a2e676261a
Added missing function reboot(). Also tweaked the build scripts so that they fetch a common version from the file VERSION. And some spelling tweaks for the log output.
2020-08-20 12:25:21 +00:00
Anton Hvornum
614d6374b8
Forgot to split the path, assumed it was a list
2020-07-08 13:42:48 +00:00
Anton Hvornum
3e97b1e93c
rc6: Fixed an issue where 'which' doesn't return the binary absolute path. This due to which being a builtin bash thing, and for whatever reason that stopped working when running as a module, so created locate_binary(name:str) which uses the PATH variable just as which does to find the binary's absolute path
2020-07-08 13:38:15 +00:00
Anton Hvornum
6e6707116f
Changed the cache directory to be under ~/.cache instead. Having it in a archinstall folder directly under the users catalogue caused some issues when doing 'import archinstall' when standing in the home directory after trying to uninstall archinstall heh
2020-07-08 09:38:03 +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
3b3456b6f9
Added a raise on sys_command exit code being bad. Also updated readme to show how to test this locally
2020-07-07 22:24:56 +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
f7d3022cc8
Reworked final preparations for working with profiles and installing them.
2020-07-06 22:20:34 +02:00
Anton Hvornum
b4a6f03b96
Converted the lib to a pip supported structure to make packaging easier. Also tweaked some minor issues and added the AUR function
2020-07-06 18:44:42 +02:00