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-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.
2021-03-09Fixed an issue where Partition() instances got overwritten every time ↵Anton Hvornum
disk.partitions were called. Causing flags such as .encrypted to be dropped. This should make for a more stable experience when working with the partitions.
2021-03-09Adding encryption helpers to the Partition() class, that sets up and ↵Anton Hvornum
utilizes luks2.encrypt() in extension.
2021-03-08Fixed 'mount point does not exist' on temporary mount point.Anton Hvornum
2021-03-08Optimization, safe_to_format() now checks partition.allow_formatting as a ↵Anton Hvornum
condition.
2021-03-08Added two new functions. partition.safe_to_format() and ↵Anton Hvornum
partition.has_content(). The first does some sanity checks to verify if we can format the partition or not. The second temporarly mounts the parition and checks if there's content inside and returns accordingly.
2021-03-08Reworked the guided partitioning logic to better match new expectations of ↵Anton Hvornum
flexability. Still some work to be done and features to be implemented, but the structure is taking place
2021-03-08Removing part of the old formatting scheme. New implementation roughly 80% done.Anton Hvornum
2021-03-08Tweaked logging slightly.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-02-17Implemented #106 in branch skip-partitioning. Also moving the disk_password ↵Anton Hvornum
from being a local variable to a BlockDevice setting/variable.
2021-02-11Reworked the way partition formatting works. As well as added some flags to ↵Anton Hvornum
the partition if it's locked/unlocked for partitioning. By defaults partitions will now be in a locked state - prohibiting formatting unless set or overridden in the formatting call. This allows us to selectively format partitions individually later on. There's also a target_mountpoint that is the desired relative mount point inside a installation. This can be pre-pended with the installation base directory during mount. These changes also function as indicators for the installation (and guided installation) for which partitions to use and/or wipe. If an entire drive is selected for wiping, these changes will have no affect in the decision making as all partitions will be new and have formatable set to true.
2021-02-07Added a dummy function call to grab the partition fstype, since unmounted ↵Anton Hvornum
filesystems won't return the fstype obviously.
2021-02-07Reworked fault handling a bitAnton Hvornum
2021-02-07Added error handling for BlockDevice() that was given no information.Anton Hvornum
2021-02-07Corrected two variables.Anton Hvornum
2021-02-07Added error handling for get_mount_info()Anton Hvornum
2021-02-07Added a default no-info value to BlockDevice()Anton Hvornum
2021-02-07Moved the output of the current fileformat structure in guided, as well as ↵Anton Hvornum
added an option to supress the log message from format() in order to hide (for users) the some what confusing formating of /dev/null.
2021-02-07Added a check in guided to make it more visible that we check for filesystem ↵Anton Hvornum
supportation.
2021-02-07Added correct exception handling to the pre-format check.Anton Hvornum
2021-02-07Fixed correct variable usage for path when formatting, enabling temporary ↵Anton Hvornum
override.
2021-02-07Renamed fat32 to vfat to work more seamlessly with findmnt and other tools ↵Anton Hvornum
that report fat32 as vfat
2021-02-07Quotation issueAnton Hvornum
2021-02-07Added an early check for filesystem compatability. Since we need to handle ↵Anton Hvornum
unique packages etc for certain filesystem formats. This early check can be caught and ignored if the programmer/user wants to override the check and continue anyway. But the default should be to stop all execution to not install a half-working system.
2021-02-07Added some more failsafe's to the Partition() object.Anton Hvornum
2021-02-07Yielding actual partitions and not just the partition number :)Anton Hvornum
2021-02-07Made BlockDevices() iterable, iterting over each partitionAnton Hvornum
2021-02-07Added partition info on Partition() creation. This will help detect ↵Anton Hvornum
potential mountpoints as well as filesystem types if any
2021-02-07Added the ability to check if a harddrive has any mountpoint related to a ↵Anton Hvornum
given parameter.
2021-02-07Created has_partitions() on BlockDevice'sAnton Hvornum
2021-01-26Merge pull request #90 from Reiddragon/masterAnton Hvornum
Added basic F2FS support
2021-01-24Trying to centralize the configuration for logging. Phasing out some ↵Anton Hvornum
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-22Added basic F2FS supportReid
2021-01-22fixed tabs and spaces problemadvaithm
2021-01-22xfs as partition optionadvaithm
2021-01-21Fixes #88 - ext4 paritions incorrectly labeledAnton Hvornum
2020-12-07Potential solution for #67Anton Hvornum
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-07Final verification of issueAnton Hvornum
2020-12-07Removed debuggingAnton Hvornum
2020-12-07Tweaked debugging a bitAnton Hvornum
2020-12-07Update disk.pyAnton Hvornum
2020-12-07Removing one debug step to debug deeper.Anton Hvornum
2020-12-07Spelling errorAnton Hvornum