Commit Graph

222 Commits

Author SHA1 Message Date
Anton Hvornum 7eaee2cd48
Added a little print out to inform the user about where to find the log file on a crash. 2021-01-25 00:25:15 +01:00
Anton Hvornum 435d2f687e
Added some more fields to the configuration output, as well as added a better fail safe for the logging output. Any exception during the installation will be caught by __exit__ in Installer(), hopefully. 2021-01-25 00:09:34 +01:00
Anton Hvornum a58331868e
Added debug output as well as corrected output formatting in log(). 2021-01-24 23:41:45 +01:00
Anton Hvornum ca2408a3d2
Mixup with variable name 2021-01-24 23:31:41 +01:00
Anton Hvornum 828a09b9c8
Simpligied installer.log() to wrap output.log() with it's changes. 2021-01-24 22:57:16 +01:00
Anton Hvornum f31d5e34cd Trying to centralize the configuration for logging. Phasing out some parameters which also affects the current ability to create multiple log files for multiple runs. This will be re-introduced when logging is made into a class object in a later version 2021-01-24 22:42:07 +01:00
Giancarlo Razzolini f48e5d59c6
Change Arch Linux site URL's
Recently Arch Linux shed the www portion of its site. The links still work,
but it's a 301 redirection to archlinux.org. Changed all the URL's still pointing
to www.archlinux.org to avoid the unnecessary redirection, since on browsers the 301
is usually saved and respected, but command line tools line wget or python might not
save this and always go through the redirect.
2021-01-22 13:34:44 -03:00
advaithm a54c6e3c2f
replced slef.part with self.partition 2021-01-22 17:08:35 +05:30
advaithm eb35265234
fixex spaces in installer.py 2021-01-22 16:57:33 +05:30
advaithm 905f10e9d2
fixed tabs and spaces problem 2021-01-22 16:18:12 +05:30
advaithm 40c6aad0ed
xfs as partition option 2021-01-22 15:32:29 +05:30
Anton Hvornum 89bb819af2
Fixes #88 - ext4 paritions incorrectly labeled 2021-01-21 20:21:31 +01:00
Anton Hvornum c5250fbe3e Installer.mount() had accedental hard coded mountpoint. 2020-12-09 10:33:32 +01:00
Anton Hvornum 5cf09c6641 Removing debug output 2020-12-07 20:38:51 +01:00
Anton Hvornum 21cfe5708c Fixing a strip glitch in `sys_command()` causing certain output to get truncated in unwanted places (like fstab) 2020-12-07 20:36:06 +01:00
Anton Hvornum 5c8d24a329 Minor tweaks 2020-12-07 20:33:09 +01:00
Anton Hvornum ada7a0515b More debugging 2020-12-07 20:31:18 +01:00
Anton Hvornum 881d77064c Debug data 2020-12-07 20:27:45 +01:00
Anton Hvornum 5e62b409b4 Type mismatch in genfstab() 2020-12-07 20:21:47 +01:00
Anton Hvornum 0de302c47d Updated fstab to better match the given input 2020-12-07 20:18:47 +01:00
Anton Hvornum ba863c341d fstab incorrectly updated since many version ago
Updated `genfstab()` to approprately generate a correct fstab for mounted filesystems used in `installation.mountpoint`.
2020-12-07 19:56:51 +01:00
Anton Hvornum 7097fb9ce3 Debugging 2020-12-07 19:36:18 +01:00
Anton Hvornum 584219e847 Updated debug log output 2020-12-07 19:28:36 +01:00
Anton Hvornum c3336dcb70 Added some more log output regarding fstab. 2020-12-07 19:22:48 +01:00
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 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