Commit Graph

29 Commits

Author SHA1 Message Date
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 fc4790b33c Added symlinks instead of copying when building. Also mofied the __file__ path in __main__.py as it was pointing a bit off for some reason 2020-07-08 13:22:05 +00:00
Anton Hvornum 027f6695bf Adding symlink to examples. 2020-07-08 12:34:22 +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