Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
AgeCommit message (Collapse)Author
2021-03-14Removed redundant error handling as well as added some more debug logs.Anton Hvornum
2021-03-09Purged last legacy, setting the root pwAnton Hvornum
2021-03-09fixed a global variable as well as re-organized the guided.py to better ↵Anton Hvornum
match the flow of steps.. 1) Ask user questions function, 2) Perform installation steps, 3) Perform actual installation
2021-03-09Moved everything into a function block rather than having everything on a ↵Anton Hvornum
line by line situation. This just helps separate what the two major components/blocks are of the guided profile. The change was done in the previous commit, but a spelling mistake was made here and I forgot to mention it in the already long commit log. But user-questions is now in one function. Installation steps are now in a two-tier function, one for setup and one for install steps.
2021-03-09Fixed remaining installation steps and remove legacy references to ↵Anton Hvornum
archinstall.storage['_guided'] and archinstall.storage['_guided_hidden']. Which were great at the time, but they are not deprecated and moved into archinstall.arguments instead to support parameters on command-line. As well as being a bit more description, since they are arguments afterall to various setup instructions.
2021-03-09Fixed mirror-region parameter selection. Converting to actual mirrors.Anton Hvornum
2021-03-09Forgot a variable.Anton Hvornum
2021-03-09Adding enforcement to select a filesystem-type for encrypted volumes unless ↵Anton Hvornum
the specified pasword can be used to unlock the device and auto-detect this.
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-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-09Adding encryption helpers to the Partition() class, that sets up and ↵Anton Hvornum
utilizes luks2.encrypt() in extension.
2021-03-08Tweaked the guided steps up until the installation.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-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Tweaked logging slightly.Anton Hvornum
2021-03-08Fixed the JSON_Encoder. The issue was that dictionaries are mutable, and ↵Anton Hvornum
dumping dictionaries and replacing keys also replaces the original value.
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added some debugging.Anton Hvornum
2021-03-08Added a abort messageAnton Hvornum
2021-03-08Re-formatted a question a bit.Anton Hvornum
2021-03-08Fixed indentation on output.Anton Hvornum
2021-03-08Added a small menu instead of a one-liner to select what to do with the disk ↵Anton Hvornum
if it has partitions.
2021-02-17Added a commentAnton Hvornum
2021-02-17Testing auto-filter in the JSON encoder based on ! points markering ↵Anton Hvornum
sensitive data.
2021-02-17Removed redundant variableAnton Hvornum
2021-02-17Simplified profile prep-execution slightly in guided.py. The code can be ↵Anton Hvornum
improved further but it's now more easily read what's going on.
2021-02-17Simplifying the profile loading a bit, and adding some debugging for it.Anton Hvornum
2021-02-17Cleaned up guided.py further by stream-lining the profiles and NIC ↵Anton Hvornum
configuration.
2021-02-17Cleaning up guided.py a bit to be less complex and convoluted, while still ↵Anton Hvornum
performing the same task.
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-17Forgot relative path for exceptions.Anton Hvornum
2021-02-17Added more error handling for filesystem selectionAnton Hvornum
2021-02-17Added more flags to the dummy-formatAnton Hvornum
2021-02-17Added some error handling when selecting a filesystem for partitions.Anton Hvornum
2021-02-17Adding filesystem selection for partitionsAnton Hvornum
2021-02-16Re-worked guided to allow for unsupported fileformats when checking which ↵Anton Hvornum
are supported, as well as selecting mount-points.
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-07Forgot importpath for exceptionsAnton Hvornum
2021-02-07Quotation issueAnton Hvornum
2021-02-07Replacing static variables with more dynamic ones that can live across ↵Anton Hvornum
scopes. No need to pass things around unless strictly nessecary
2021-02-07Forgot a semicolonAnton Hvornum
2021-02-07Thought I could get away with a little default-parameter hack to make the ↵Anton Hvornum
code look nice, but the JIT doesn't do lazy resolving on .get() calls.
2021-02-07Added in command line arguments to guided and simplified the laout of guided ↵Anton Hvornum
a bit. Also added some more comments.
2021-02-07Added in argument support to archinstall for easier testing and debuggingAnton Hvornum