Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
AgeCommit message (Collapse)Author
2021-04-17Merging in master to feature branch.Anton Hvornum
2021-04-13Modifying to enable piping in custom environment variables. This is ↵Anton Hvornum
required to disable systemd coloring and paging when querying for service states. Otherwise it returns unreliable data that can cause hanging.
2021-04-13Closing forked process PID in order to close any ramining open file handles.Anton Hvornum
2021-04-04Removed debugging, added an additional 'move back to beginning' and print ↵Anton Hvornum
the peak again. Added this to any pacstrap call.
2021-04-04Added some debuggingAnton Hvornum
2021-04-04Added stripping of peak output to avoid new lines forming.Anton Hvornum
2021-04-04Added error handling to sys_command's peak function.Anton Hvornum
2021-04-04Moved import due to circular imports.Anton Hvornum
2021-04-04Added functionality towards #155. It's not a progress bar per sae, but it ↵Anton Hvornum
will show the last line outputted by commands enabling peaking of the ongoing process.
2021-04-02Support passing commands as listskpcyrd
2021-03-23Also setting cwd (bad choice of name) to the workdir if one was specified. ↵Anton Hvornum
Which makes the trace.log to end up in the workdir as well.
2021-03-23Enabling archinstall.sys_command() to get a working directory when ↵Anton Hvornum
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-14Tweaked SysCallError() exception to include the exit code in a machine ↵Anton Hvornum
readable manner. Since it's useful as an indicator where calls might go wrong and for what reason.
2021-03-08Fixed the JSON_Encoder. The issue was that dictionaries are mutable, and ↵Anton Hvornum
dumping dictionaries and replacing keys also replaces the original value.
2021-02-17Testing auto-filter in the JSON encoder based on ! points markering ↵Anton Hvornum
sensitive data.
2021-01-25Added some more fields to the configuration output, as well as added a ↵Anton Hvornum
better fail safe for the logging output. Any exception during the installation will be caught by __exit__ in Installer(), hopefully.
2020-12-07Fixing a strip glitch in `sys_command()` causing certain output to get ↵Anton Hvornum
truncated in unwanted places (like fstab)
2020-11-04Fixed level issues on log output. Also tweaked it so that all log rows come ↵Anton Hvornum
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-04Added multiple log features.Anton Hvornum
* [Reintroduced](https://github.com/Torxed/archinstall/blob/f64a605449f59c677dff39962f1cb46616d893b7/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-10-19Fix some PEP-8 errors.Varun Madiath
2020-10-19Fix typo in function parameterVarun Madiath
`suppress_errors` was previously spelt `surpress_errors`
2020-10-19Fix typos.Varun Madiath
2020-10-18Forgot an importAnton Hvornum
2020-10-18Removed a stub functionAnton Hvornum
2020-10-18Added a JSON serializer for certain non-json objects.Anton Hvornum
2020-10-11Added text-to-speach, untested but the base is now added. It routes through ↵Anton Hvornum
if available. And can be accessed with directly if needed.
2020-08-20Added missing function reboot(). Also tweaked the build scripts so that they ↵Anton Hvornum
fetch a common version from the file VERSION. And some spelling tweaks for the log output.
2020-07-08Forgot to split the path, assumed it was a listAnton Hvornum
2020-07-08rc6: Fixed an issue where 'which' doesn't return the binary absolute path. ↵Anton Hvornum
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-08Changed the cache directory to be under ~/.cache instead. Having it in a ↵Anton Hvornum
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-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 a raise on sys_command exit code being bad. Also updated readme to ↵Anton Hvornum
show how to test this locally
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