Commit Graph

1036 Commits

Author SHA1 Message Date
Anton Hvornum 2dea2426b2 Version bump rc4 2020-08-04 11:36:07 +02:00
Anton Hvornum 928654ae35 Added two new functions. Fixed set_locale. enable_service() was added as well as activate_ntp(). 2020-08-04 11:34:00 +02:00
Anton Hvornum 196d4a178e Added add_custom_mirrors(). The function appends custom mirrors to /etc/pacman.conf 2020-07-30 23:15:51 +00:00
Anton Hvornum 6c5c24ecef Added a function to the installer, also added a function to make it easier to enable it in a installation, after which can be called. 2020-07-22 14:19:41 +00:00
Anton Hvornum 0cd088572d New feature: application profiles now support .py as well. Also fixed a sys.path issue where an installed version of archinstall would have precedence over the local version when profiles were being executed (because profiles were living in a unknown relative working directory, the caller to those profiles have to make sure .archinstall exists in sys.path before calling said profile) 2020-07-22 01:03:14 +00:00
Anton Hvornum c884a25237 Added a set_timezone() and fixed set_locale() in the Installer() class. Also added a mirrors.py helper to rudimentary set mirror data on the installer host 2020-07-21 19:03:24 +00:00
Anton Hvornum 06f8c46b3d Added some more documentation. Also added a __init__.py in the git repo so that cloning enables importing as well. This should enable both git clone to work as well as pypi. 2020-07-21 11:01:48 +00:00
Anton Hvornum 2b14aa68d0 Created a __dump__ function in BlockDevice. Can be used to safely dump the class into a JSON object. Building a json_encoder which checks if the object hasattr(obj, '__dump__') before calling would be ideal 2020-07-21 08:17:31 +02: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 ef7ebfc394 Added debugging 2020-07-08 22:11:22 +00:00
Anton Hvornum 6c3be5de95 Fixed issue with filename replacing variable. 2020-07-08 21:12:29 +00:00
Anton Hvornum a59efc40a7 Added missing btrfs to mkinitcpio. Also added a bunch of locale stuff and genfstab which I forgot 2020-07-08 21:07:16 +00:00
Anton Hvornum 1fabd5c566 Swapped crypted and unencrypted logic. 2020-07-08 17:57:04 +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 bc8f6ce448 Added a sleep for testing 2020-07-08 17:10:03 +00:00
Anton Hvornum d47fbf191c mkinitcpio was no longer a part of linux or base, had to be installed seperately 2020-07-08 16:42:35 +00:00
Anton Hvornum a8b2e9d80b Added debug to pacstrap of base and linux 2020-07-08 16:28:25 +00:00
Anton Hvornum c271e4c0d7 Added a encrypted flag to the Partition() object. So that certain checks can be done by the Installer() later on, for instance when adding a bootloader. There's also a now which tries to find the parent device to the unlocked encrypted device. 2020-07-08 16:12:57 +00:00
Anton Hvornum 078567f81c Using two different methods for encrypted/non encrypted drives. 2020-07-08 15:43:54 +00:00
Anton Hvornum 46c8e74a73 Trying to sort out a boot issue 2020-07-08 15:15:53 +00:00
Anton Hvornum fdff7cf04c Using PARTUUID instead of disk UUID 2020-07-08 14:51:16 +00:00
Anton Hvornum ef5cbac118 Fixed an issue where the boot loader tried to point the / boot towards the /boot partition in the loader entry. 2020-07-08 14:31:01 +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 aecd333ea3 v2.0.3 prep release. Profile now fully support python scripting instead of JSON. They also support importing archinstall and doing whatever the examples are doing - with one tiiiny TODO/hack/magic, the 'installer' session that is contextulized gets hard-inserted into the globals() scope. Since the child script won't actually have the global instance of the parent, we need to insert it to be known due to the way we import stuff 2020-07-08 10:46:52 +00:00
Anton Hvornum 3ed8db5ef0 Added support for .py profiles. Added a simple 'desktop.py' for now that is just a mock to make sure it's working. 2020-07-08 10:22:25 +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 7545b128d8 Prepped readme for pypi. Also updated setup.py to reflect a better project name when uploading to pypi. 2020-07-06 22:52:54 +02:00
Anton Hvornum 8764de14c9 Renaming deployments to profiles 2020-07-06 22:23:52 +02:00
Anton Hvornum d723dcf0d7 Renaming deployments to profiles 2020-07-06 22:23:29 +02: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