Commit Graph

922 Commits

Author SHA1 Message Date
Anton Hvornum fb429fc866 Reverted genfstab changes.
But placed genfstab in the Installation() __exit__ as the last action performed.
2020-12-07 16:45:49 +01:00
Anton Hvornum 67ce208d25 Debugging 2020-12-07 16:42:08 +01:00
Anton Hvornum 63c6e0464b Making sure installation.mount() also triggers genfstab.
Since it's a installation specific mount, we need to re-create genfstab. Also corrected genfstab flags as well as added an option to override the >> (append) operator to become a write-over operator.
2020-12-07 16:36:35 +01:00
Anton Hvornum e637852df0 Potential solution for #67
It's a 0.025 second sleep waiting for the partition to pop up in partprobe.

Also added a grace period of 10 seconds for that to occur. Otherwise we'll throw an exception since something most likely broke down. (Note here: Older drives, say 6200 RPM spin disks, might take a few seconds to come online. Have no such hardware to test with, but worth testing)
2020-12-07 15:50:47 +01:00
Anton Hvornum 1aef9807f9 Final verification of issue 2020-12-07 15:43:30 +01:00
Anton Hvornum 6af71eee30 Removed debugging 2020-12-07 15:41:32 +01:00
Anton Hvornum 1209c8f550 Tweaked debugging a bit 2020-12-07 15:40:39 +01:00
Anton Hvornum 5882fa9587 Update disk.py 2020-12-07 15:35:29 +01:00
Anton Hvornum a8bb3b4bb3 Removing one debug step to debug deeper. 2020-12-07 15:32:34 +01:00
Anton Hvornum 24dfe97386 Spelling error 2020-12-07 15:30:00 +01:00
Anton Hvornum de4471ca68 Adding some debugging for #67 2020-12-07 15:29:34 +01:00
Anton Hvornum 17883fcb9f Check if directory exists before mounting 2020-12-06 23:08:12 +01:00
Anton Hvornum c7228910a7 Swapped order of partition vs mountpoint in installation.mount() 2020-12-06 22:45:59 +01:00
Anton Hvornum f7d236c00f Fix for last commit 2020-12-06 22:40:05 +01:00
Anton Hvornum 77035dfdcd Mixup with the variable 2020-12-06 22:29:09 +01:00
Anton Hvornum 3715e3a11b
Merge pull request #72 from Torxed/drive-select
selecting disk by id/size should return a BlockDevice()
2020-12-06 22:10:46 +01:00
Anton Hvornum 0f2d61ba08 selecting disk by id/size should return a BlockDevice() 2020-12-06 22:02:41 +01:00
Anton Hvornum ace6beb209 Attempting to select drives by size and/or id 2020-12-06 20:59:32 +00:00
Anton Hvornum d588d2f1eb
Merge pull request #71 from Torxed/drive-select
Attempting to select drives by size and/or id
2020-12-06 21:29:29 +01:00
Anton Hvornum 731804c491
Updated hash in PKGBUILD 2020-12-06 17:43:16 +01:00
Anton Hvornum ad5ce9cd19
Updated hash of PKGBUILD 2020-12-06 17:42:14 +01:00
Anton Hvornum dc3ef2e269
Updated hash for PKGBUILD 2020-12-06 17:40:48 +01:00
Anton Hvornum db455276ac Version bump in docs 2020-12-06 17:28:44 +01:00
Anton Hvornum af01f1d912 Version bump: 2.0.6
Packaging for release.
2020-12-06 17:26:54 +01:00
Anton Hvornum 4d0f89e084 Variable issue in Application() from the latest change. 2020-12-06 17:16:59 +01:00
Anton Hvornum 22e1271a0b Making list_examples() results cached
This to lock in found modules, in case paths dissapear during runtime.
2020-12-06 17:12:12 +01:00
Anton Hvornum a0c9e58c82 More debugging 2020-12-06 17:09:59 +01:00
Anton Hvornum 94581b706a Debug for testing 2020-12-06 17:08:43 +01:00
Anton Hvornum 271ca853d4 Refined debug output 2020-12-06 17:03:41 +01:00
Anton Hvornum df71d22498 PATH correction for /examples/ 2020-12-06 16:53:36 +01:00
Anton Hvornum d00f0f0005 Debugging 2020-12-06 16:52:11 +01:00
Anton Hvornum 101f3bdde9 Removed /examples/ from list_profiles() by default
Adding it back in in "module mode" so that it can find guided.py correctly. This voids showing it in the user-question section.
2020-12-06 16:30:29 +01:00
Anton Hvornum eaf4528276 Reduced calls to Profile.path
Since it triggers multiple walks and HTTP requests.
2020-12-06 13:10:10 +01:00
Anton Hvornum 393758ec24 Removed debugging for walk
Application profiles now seam properly integrated by setup.py, remote profiles have not yet been tested.
2020-12-06 12:50:51 +01:00
Anton Hvornum 7764804d4c Added application profiles to the setup.py
Otherwise local lookups for application specific profiles will break/be missing.
2020-12-06 12:37:51 +01:00
Anton Hvornum 5a07b22606 Debugging 2020-12-06 12:12:10 +01:00
Anton Hvornum 1edb8f6f72 Added additional user-verification to guided.py
Also spelling error in subpath
2020-12-06 12:03:36 +01:00
Anton Hvornum b6c6e414b1 Fixed issue where absolute paths to profiles got squashed 2020-12-06 12:00:56 +01:00
Anton Hvornum 9fb08387de Reverted last commit and added debugging in guided instead 2020-12-06 11:58:16 +01:00
Anton Hvornum 017b4b4fa9 Added debugging to find application issue 2020-12-06 11:54:38 +01:00
Anton Hvornum 74c351f27f Simplified guided.py a bit 2020-12-06 11:49:56 +01:00
Anton Hvornum 51629897b9 Modified Application() and list_profiles()
list_profiles() support a subpath parameter, which just gets appended after any given path found in PROFILE_PATH as well as UPSTREAM_URL to support filtering on application level.
2020-12-06 11:46:10 +01:00
Anton Hvornum 7f57e670da Returning Profile() to correctly handle with statement 2020-12-06 11:38:23 +01:00
Anton Hvornum bef8926004 Update profiles.py 2020-12-06 11:37:09 +01:00
Anton Hvornum 0e8aee0b54 Added spec as an instance variable to Script() 2020-12-06 11:33:28 +01:00
Anton Hvornum d3462aa483 Moving self.installer to Script() instead of Profile() 2020-12-06 11:32:31 +01:00
Anton Hvornum 9921276ea5 Wrong variable passed to spec_from_file_location() 2020-12-06 11:29:44 +01:00
Anton Hvornum 73ca83f2c9 Debugging 2020-12-06 11:25:33 +01:00
Anton Hvornum d54bd4462b Simplifying the Profile() and Imported() logic.
Combining two/three separate logics into one, to make it easier to maintain profile loading.
2020-12-06 11:23:19 +01:00
Anton Hvornum 783e8ac117 Added a lower() factor to mac addresses in get_interface_from_mac() to match list_interfaces(). 2020-11-29 21:51:39 +00:00