Commit Graph

396 Commits

Author SHA1 Message Date
SecondThundeR 23fc3ab2f2 Fix incorrect behavior for empty sudo username 2021-04-08 09:20:39 -04:00
Anton Hvornum 5134fb75c6 Corrected for keymap before encrypt hook
Also think that we should patch mkinitcpio, not replace it.
Especially in the btrfs case where we simply just want to add `btrfs` to the `MODULES` section.
2021-04-08 09:20:39 -04:00
SecondThundeR b3aa1ef695 Update regex rule and move check to a function 2021-04-08 09:20:39 -04:00
SecondThundeR caeb1d433f Replace lowercase conversion with correct checking 2021-04-08 09:20:39 -04:00
SecondThundeR 3640ee8d25 Add lowercase conversion for usernames 2021-04-08 09:20:39 -04:00
Anton Hvornum d771d35076 Update installer.py 2021-04-08 09:20:39 -04:00
Ruslan Kiyanchuk b178dc7267 Fix undefined variables in installer 2021-04-08 09:10:55 -04:00
Anton Hvornum 2c73989da4
Removed a TODO comment 2021-04-05 11:38:17 +02:00
Anton Hvornum b46e391ebc Fixes: AttributeError: 'BlockDevice' object has no attribute 'keep_partitions' 2021-04-04 22:40:17 +02:00
Zach Osman 69a8730845 Removing background color definitions for all log functions 2021-04-04 16:14:13 -04:00
Zach Osman 9b2af4eb4c Closed #110 2021-04-04 15:46:02 -04:00
Anton Hvornum f8fc542fd7
Merge branch 'master' into fix-repo-url 2021-04-04 18:32:59 +00:00
Anton Hvornum 6c31ad7aa0
encryption_passwed -> encryption_password 2021-04-04 17:43:56 +02:00
Rafael Fontenelle 5a321d6ce5 Update repo to archlinux/archinstall 2021-04-04 11:52:51 -03:00
Rafael Fontenelle 2b5b1ad83d Fix misspellings 2021-04-04 11:28:54 -03:00
Anton Hvornum bf4c32e2e0 Forgot option PARTUUID to lsblk 2021-04-03 18:34:51 +02:00
Anton Hvornum b2927a5067
This should fix #151, by using lsblk instead of /dev/disk/by-partuuid. It also cleaned up the installer code quite a bit during the bootloader installation. Will do the same for encrypted drives later on by implementing UUID on a BlockDevice (disk) level. 2021-04-03 16:22:09 +02:00
Anton Hvornum 2bf947ba05
This should correct #152. When a newly /boot partition is created with no content or incorrect filesystem (meaning, no file system yet), the .has_content() call will crash due to incorrect fstype. Which means we should be able to skip the check and assume it's safe to format. Because there's no way (?) other OS:es can store something on the boot partition on a broken FS. 2021-04-03 15:32:06 +02:00
Anton Hvornum 7333fe109c
Converted the raise exception into a log. Whenever blockdevice is unsure of what type it's working on, it will not log it as a debug message. 2021-04-03 15:18:35 +02:00
Anton Hvornum 1c3287bc81
Removed a breaking change while fixing hardware raids 2021-04-03 15:11:10 +02:00
Anton Hvornum 67bb00c655
This partially addresses #151. Which might require more than just the path being returned. As the blkid might not be correctly identifying it in the bootloader step. But we'll have to test and see. 2021-04-03 14:59:40 +02:00
Anton Hvornum 7ae9696f13
This should correct #135. I'll have to investigate other places where this logic might be as well and correct those. 2021-04-03 14:04:18 +02:00
Anton Hvornum bb295cb83a
Fixes #149 as well as --help. This will be added in the next patch release. 2021-04-03 11:25:34 +02:00
Pyfisch cf4745bbb6 Join cryptsetup args using shlex
Ensure that all arguments are properly quoted.
Improve readability by using long-form arguments only.
Use identical arguments for both cryptsetup calls,
to prevent them from accidentally diverging in future commits.
2021-04-02 18:19:25 +02:00
Anton Hvornum 0488c93a50
Merge pull request #134 from conqp/master
General code cleanup
2021-04-02 09:01:07 +00:00
Anton Hvornum ef7f2f53b1
Missing variable
This should fix #135
2021-04-01 22:12:52 +02:00
Richard Neumann c0cfa7ae92 Remove useless __init__ methods 2021-04-01 20:46:28 +02:00
Richard Neumann cab8c7d43a Move class-related docstring to class definition 2021-04-01 20:45:45 +02:00
Richard Neumann 1d54a625f4 Simplify boolean checks 2021-04-01 20:31:29 +02:00
kpcyrd 40dbb5791c Add range check to disk selection 2021-03-30 16:24:48 +02:00
kpcyrd 82342a0e94 Add range check to generic_select 2021-03-30 16:12:52 +02:00
Anton Hvornum b03de49f0f Removed debugging and finalized fix. 2021-03-29 18:17:09 +02:00
Anton Hvornum 151c90a56d Added some debugging. 2021-03-29 18:12:05 +02:00
Anton Hvornum a50aa59060
Adding .encrypted logic after .format calls to correctly identify partitions as encrypted/not-encrypted. This after a .flush_cache has been called. 2021-03-29 18:11:46 +02:00
Anton Hvornum 8c8a441c26
Added some debugging. 2021-03-29 18:10:02 +02:00
Anton Hvornum 1b903550b5
Reworking cache logic to not loose .encrypted flag on partitions after flushing cache. 2021-03-29 17:53:30 +02:00
Anton Hvornum 0c86440e2e
Rolling back change to check parent blockdevice for safe formatting, it would wipe the boot partition if the boot partition for multiple drives was shared on the specific drive. 2021-03-29 17:47:34 +02:00
Anton Hvornum a29bd75954
Removing a flush of the cache that was excessive. 2021-03-29 17:46:07 +02:00
Anton Hvornum 512f0327f0
Experimenting with cache, carrying over .allow_formatting 2021-03-29 17:34:13 +02:00
Anton Hvornum a0980afff1
Experimenting with carrying over flags across cache flush. This to solve issues when flush is cleared and target mountpoints gets lost, making it impossible to do .find_mountpoint('/') later on for instance. 2021-03-29 17:32:48 +02:00
Anton Hvornum f3907310e3
Allowing individual partitions safety checks to rely on the parent blockdevice keep_partitions status. 2021-03-29 16:59:09 +02:00
Anton Hvornum 5e9c973d42
Added support for flushing a BlockDevice() cache after a partition has been formatted. This is to avoid internal confusion of which partitions are encrypted or not when going from Encrypted -> Un-encrypted setups. 2021-03-29 16:51:30 +02:00
Anton Hvornum d26c1f820d
Toned down the debugging a bit. 2021-03-29 16:11:30 +02:00
Anton Hvornum 39cb0b94d9
Moved some debugging to catch more variable settings. 2021-03-29 15:57:31 +02:00
Anton Hvornum 0e26975247
Adding callstack to debug output for easier debugging. Removed hardcoded debug crash 2021-03-29 15:55:36 +02:00
Anton Hvornum e94a8d8b25
Debugging 2021-03-29 13:16:42 +02:00
Anton Hvornum 4c5be61918
Merge pull request #123 from Torxed/torxed-v2.2.3
Reverting .strip() logic and moving the check into the get_password()…
2021-03-29 08:21:42 +00:00
Anton Hvornum 36dfa2e1c4
Reverting .strip() logic and moving the check into the get_password() function. 2021-03-29 10:20:35 +02:00
Didr f452dc695a
Fix spelling error in filesystem choice
Fixes a simple spelling error when the user is asked to select a filesystem.
"Select which filesystem your main partition should use (by number **of** name)" should be **or**.
2021-03-29 10:16:20 +02:00
Anton Hvornum 3161cd8aff
Fixing rare occation where partitions dissapear just before .format(). 2021-03-29 09:09:25 +02:00