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-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.
2021-03-24Fixes an issue with completely empty hard drivesAnton Hvornum
If empty hard drives are being set up for the first time, then `.has_content()`'s `mount` call will fail with `wrong fstype` since there's no filesystem yet. First step in this case is to check for that scenario, then check for content.
2021-03-21Removed some debugging output.Anton Hvornum
2021-03-21Added an option to force-flush a blockdevice cache. creating a new ↵Anton Hvornum
Filesystem() now triggers a flush of the cache since all partitions are removed. There shouldn't be any harm in even bypassing the cache, but it's there for a few reasons.
2021-03-21Debugging a partioning case.Anton Hvornum
2021-03-21Centralized a partition call to use the logging feature raw_parted().Anton Hvornum
2021-03-21Added more debug level information to parted in case it goes heywire.Anton Hvornum
2021-03-21Marking newly created partitions as safe to format in use_entire_disk(), by ↵Anton Hvornum
adding allow_formatting=True to the partitions. Also added some debugging to help aiding in support cases.
2021-03-21Added some more debugging and error logs to the project. Mainly to indicate ↵Anton Hvornum
background tasks and errors to the debug log in case users need to submit it.
2021-03-21Fixing minor issue in v2.1.2-rc3. The use_entire_disk() helper function was ↵Anton Hvornum
adding a partition with the format vfat, but parted doesn't understand this and needs fat32.
2021-03-14Added some error handling.Anton Hvornum
2021-03-14encrypted devices won't always report as a child to a device, can't reliably ↵Anton Hvornum
look for a 'parent' of a encrypted drive when it doesn't show up. Hence, the DiskError() can't be raised just because we can't find a parent. The parent should be the current path if no other option was found.
2021-03-14Added alias umount() to unmount().Anton Hvornum
2021-03-14Added some error handling for umount().Anton Hvornum
2021-03-14Added a partition.umount() and a check when running cryptsetup if the disk ↵Anton Hvornum
is in use.
2021-03-12figured out a way to get root device for installing grubadvaithm
2021-03-12fixed mistake in disk.pyadvaithm
2021-03-12Started work on BIOS supportadvaithm
2021-03-09Carried over the allow_formatting from the parent device of luks2() devices.Anton Hvornum
2021-03-09Added option to skip autodetection of filesystem. This is so for instance ↵Anton Hvornum
luks2() can override any auto-detection that revers back to the parent device of the mapped device, which would be crypto_LUKS instead of None for the inner partition.
2021-03-09Tweaked the filesystem definition setup for Partition(). Overriding it ↵Anton Hvornum
programatically should be possible for some meta stuff.
2021-03-09Added some debugging.Anton Hvornum
2021-03-09Fixed a issue with blkid where it would raise an exception when there was ↵Anton Hvornum
not filesystem on the partition.
2021-03-09Fixed a issue with blkid where it would raise an exception when there was ↵Anton Hvornum
not filesystem on the partition.
2021-03-09Added functions to auto-detect filesystems inside encrypted partitions ↵Anton Hvornum
(given a password)
2021-03-09Debugging some tweaksAnton Hvornum
2021-03-09Debugging some tweaksAnton Hvornum
2021-03-09Debugging some tweaksAnton Hvornum
2021-03-09Debugging some tweaksAnton Hvornum
2021-03-09Removed hardcoded partition numbers when acessing partitions. As the order ↵Anton Hvornum
is not fixed and more options to disk layouts have been added.
2021-03-09Forgot to return self in Filesystem()Anton Hvornum
2021-03-09Marking the root partitions as encrypted if a disk password is set. In the ↵Anton Hvornum
future, we need to make this a bit more flexible by allowing multiple partitions to be encrypted. But for now, the main partition should be enough.