Commit Graph

38 Commits

Author SHA1 Message Date
Anton Hvornum 95c80b7e83 Slimmed the awesome profile a bit. No need to install tons of dependencies just for the desktop environment. 2020-11-11 23:11:11 +00: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 3686842587 Spelling error on file 2020-10-18 12:45:10 +02:00
Anton Hvornum c6eb0386db Spelling error on a variable 2020-10-18 12:31:39 +02:00
Anton Hvornum a73f0b0135 Added a session-storag. This is in an attempt to build away some magic functionality that might otherwise be hard to understand/maintain over a long period of time. Using this in profiles/desktop.py as a test. 2020-10-18 12:28:12 +02:00
Anton Hvornum a60a3ca812 Added profile `desktop.py` which helps users select a desktop environment. Also added `archinstall.generic_select` to help with selecting generic things from a list of options. 2020-10-18 10:46:28 +02:00
Anton Hvornum cf3ccb4788 Cleaned up the awesome wm profile. A few things were test purpose-addons that shouldn't be in the default profile. 2020-09-30 20:47:28 +02:00
Anton Hvornum 6b93650bfd Type-o 2020-09-30 19:34:57 +02:00
Anton Hvornum 7448881582 Added KDE profile (untested) 2020-09-30 18:23:27 +02:00
Anton Hvornum c1692a478d __name__ missmatch in gnome profile. 2020-09-30 12:46:34 +00:00
Anton Hvornum 534679e88f Added gnome as a profile (and application for application specific steps). Also tweaked xorg to not be so intrusive when used for anything other than awesome WM. Tweaked awesome WM to accomodate this change. 2020-09-30 12:31:47 +00:00
Anton Hvornum 7f7cb6b89b Forgot to replace the xinitrc data after replacing lines. 2020-09-30 11:52:28 +00:00
Anton Hvornum 6fe4fdfce1 Debug for testing 2020-09-30 11:17:08 +00:00
Anton Hvornum 95cd1beb80 Attempt to enhance the search and replace of default apps in xorg. 2020-09-30 11:09:26 +00:00
Anton Hvornum 4597ea1a21 Fixed some issues with the awesome profile. It should now be properly installed. Still need to tweak it a bit to not be as intrusive while still giving some 'starting points' to stand on as a new user. 2020-09-30 10:54:51 +00: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 5a4d68e617 Fixing awesome and xorg for first test run. 2020-09-30 08:37:54 +00:00
Anton Hvornum 5ce8c20333 Fixed some selection processes. 2020-09-29 22:26:40 +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 ff1632ebbd Adding a comment. Also testing webhooks 2020-08-21 16:23:15 +00:00
Anton Hvornum 7a09115a70 Corrected API endpoint for automated tests. 2020-08-21 11:44:34 +00:00
Anton Hvornum 2b71ebd699 Added some debug output to the automated test profile. 2020-08-21 11:34:08 +00:00
Anton Hvornum 97696a8d02 Adjusted the automated test build to send the correct status message to the backend API. 2020-08-21 11:08:33 +00:00
Anton Hvornum 71ddbd9e02 Added API for automatic testing status. 2020-08-21 10:01:20 +00:00
Anton Hvornum 63b92f6ea7 Added try/catch for HTTPS POST. 2020-08-21 08:24:10 +00: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 d449bb4b1f Added the HTTPS POST for a successful build to the unattended test build. 2020-08-20 19:56:58 +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 0b8a3d9540 Removed legacy .json profiles. Not in favor of .py 2020-08-04 14:45:25 +02: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 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 d723dcf0d7 Renaming deployments to profiles 2020-07-06 22:23:29 +02:00