Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
AgeCommit message (Collapse)Author
2021-04-28Added a mini curses class and generic-multi-select (#362)Anton Hvornum
* Added a mini curses class. It can do some simple tricks to iterate over menu options and indicate which ones are chosen using generic_multi_select(). * Include the default parameter if set. * Modified 'select_kernel()' to use the new multi-select. * Sneaky character got in. * removed some debugging * removed some debugging * Spelling error * Adding error handling and loop support. * Enforce that 'default' is always selected if no other option is selected. * Fixed backspace issues and ghosting. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-27Moving away from custom log levels, to something that's well defined. (#360)Anton Hvornum
* Moving away from custom log levels, to something that's well defined. * Added backward compability to log() as well. * Added an option to force log messages out on screen even if the level is below the log level threashold. * Added force log messages when wrong notation is used. * Added some more length to the deprecated message * Swapped all log levels to use logging.<level> instead. Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-12Merge branch 'master' into torxed-v2.2.0Anton Hvornum
2021-04-10Show size in partition string representationDylan Taylor
2021-04-10Modified encrypted partitions to use partuuid for now.Anton Hvornum
2021-04-09Removed some debugging.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to correct some inconsitencies in disk-parent reporting.Anton Hvornum
2021-04-09Attempting to fix auto-detection of encrypted drives. So that #124 can ↵Anton Hvornum
perform reverse detection on partitions and detect encryption.
2021-04-09Attempting default value None for block device to partition.Anton Hvornum
2021-04-09Wrong variable nameAnton Hvornum
2021-04-09Added disk helper function get_partitions_in_use(). Which returns which ↵Anton Hvornum
partions are being used at a given mount location, including children.
2021-04-09Wrong variable.Anton Hvornum
2021-04-09Made sure the mount target path exists before mounting.Anton Hvornum
2021-04-07Merging changes from master into feature branch to avoid future conflics.Anton Hvornum
2021-04-04Fixes: AttributeError: 'BlockDevice' object has no attribute 'keep_partitions'Anton Hvornum
2021-04-04encryption_passwed -> encryption_passwordAnton Hvornum
2021-04-04Fix misspellingsRafael Fontenelle
2021-04-04Merging in latest changes from master.Anton Hvornum
2021-04-03Forgot option PARTUUID to lsblkAnton Hvornum
2021-04-03Merging in latest changes from master.Anton Hvornum
2021-04-03This should fix #151, by using lsblk instead of /dev/disk/by-partuuid. It ↵Anton Hvornum
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-03This should correct #152. When a newly /boot partition is created with no ↵Anton Hvornum
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-03Converted the raise exception into a log. Whenever blockdevice is unsure of ↵Anton Hvornum
what type it's working on, it will not log it as a debug message.
2021-04-03Removed a breaking change while fixing hardware raidsAnton Hvornum
2021-04-03This partially addresses #151. Which might require more than just the path ↵Anton Hvornum
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-02Merge branch 'exec-args' of https://github.com/kpcyrd/archinstall into ↵Anton Hvornum
torxed-v2.2.0
2021-04-02Support passing commands as listskpcyrd
2021-04-02accidentlly called dict as functionadvaithm
2021-04-02fixed some issues with the changesadvaithm
2021-04-02updated to latest commitsadvaithm
2021-03-29Removed debugging and finalized fix.Anton Hvornum
2021-03-29Added some debugging.Anton Hvornum
2021-03-29Adding .encrypted logic after .format calls to correctly identify partitions ↵Anton Hvornum
as encrypted/not-encrypted. This after a .flush_cache has been called.
2021-03-29Added some debugging.Anton Hvornum
2021-03-29Reworking cache logic to not loose .encrypted flag on partitions after ↵Anton Hvornum
flushing cache.
2021-03-29Rolling back change to check parent blockdevice for safe formatting, it ↵Anton Hvornum
would wipe the boot partition if the boot partition for multiple drives was shared on the specific drive.
2021-03-29Removing a flush of the cache that was excessive.Anton Hvornum
2021-03-29Experimenting with cache, carrying over .allow_formattingAnton Hvornum
2021-03-29Experimenting with carrying over flags across cache flush. This to solve ↵Anton Hvornum
issues when flush is cleared and target mountpoints gets lost, making it impossible to do .find_mountpoint('/') later on for instance.
2021-03-29Allowing individual partitions safety checks to rely on the parent ↵Anton Hvornum
blockdevice keep_partitions status.
2021-03-29Added support for flushing a BlockDevice() cache after a partition has been ↵Anton Hvornum
formatted. This is to avoid internal confusion of which partitions are encrypted or not when going from Encrypted -> Un-encrypted setups.
2021-03-29Toned down the debugging a bit.Anton Hvornum
2021-03-29Moved some debugging to catch more variable settings.Anton Hvornum
2021-03-29Adding callstack to debug output for easier debugging. Removed hardcoded ↵Anton Hvornum
debug crash
2021-03-29DebuggingAnton Hvornum
2021-03-29Fixing rare occation where partitions dissapear just before .format().Anton Hvornum
2021-03-29Fixing un-encrypted drives matching on block encrypted.Anton Hvornum
2021-03-28Adding debug to correct for a potential issue where partitions get marked as ↵Anton Hvornum
encrypted even tho \!disk-password was neven set.