Commit Graph

2338 Commits

Author SHA1 Message Date
Anton Hvornum a53ee624ef Removed debugging 2021-07-04 15:15:21 +02:00
Anton Hvornum f2b0fcc652 Added a filesystem check when marking for formatting, this should ensure that encrypted volumes get a proper filesystem without having to go through an extra step of selecting filesystem. 2021-07-04 15:15:07 +02:00
Anton Hvornum 57bad26553 Added options to mark/unmark partitions for formatting (useful when re-using partitions, and fine tune which data to save and which to wipe). Setting a desired filesystem for a partition (both new ones and the ones being re-used). 2021-07-03 15:10:23 +02:00
Anton Hvornum 51f2eca60e Saving partitioning layout in a layout file (JSON format) 2021-07-03 14:27:49 +02:00
Anton Hvornum e965eaf546 Missing .format() on 'use entire disk' step 2021-07-03 14:00:03 +02:00
Anton Hvornum 20e759d4cc Added more detail to BlockDevice.__repr__ 2021-06-15 11:51:29 +02:00
Anton Hvornum 0079f3d95c Added fs-type and formatting on encrypted partitions that haven't been given a fs-type prior when re-using partitions. 2021-06-15 10:55:36 +02:00
Anton Hvornum 6cf50618b1 Change of variable 2021-06-14 21:37:34 +02:00
Anton Hvornum fa8862a460 moved valid_parted_position to disk. And made it handle float numbers. 2021-06-14 19:04:51 +02:00
Anton Hvornum 6176ac5e5d Since all fs-type's appear to be lower-case in 'man parted', we'll check against a lowered list in general for supported fs-types. 2021-06-14 19:01:06 +02:00
Anton Hvornum 2ac1f453cf Added BlockDevice.largest_free_space and BlockDevice.free_space (iterator). Also added additional supported filesystems to parted. Apparently the online manpages doesn't agree with the local manpages, my previous statement that these gets ignored is false so added those in and removed some that isn't supported by my local manpages, 'ufs' for instance. 2021-06-14 18:53:34 +02:00
Anton Hvornum eb4c134c80 Unifying partioning logic into one function when managing partitions. Rather than giving the option between wiping and creating, and re-using and creating 2021-06-14 16:20:26 +02:00
Anton Hvornum 00b1dfde6d Merged in master 2021-06-14 16:05:19 +02:00
Anton Hvornum 0c203384e0 Re-structuring partition flow 2021-06-14 16:04:43 +02:00
Anton Hvornum 630dedadd1 Legacy re-name of function. 2021-06-14 14:49:49 +02:00
Anton Hvornum 51cb64cc97 Instructed to use truncate instead of dd, as dd is a bit slow. 2021-06-14 09:52:29 +02:00
Anton Hvornum d4f0d411f6 Synced master into partitioning branch 2021-06-14 09:26:03 +02:00
Anton Hvornum 1450387fae Started on multiple-disk-re-usage selection process. 2021-06-13 22:06:40 +02:00
Anton Hvornum 8489137b87
Merge pull request #577 from chingnux/fix-silent
fix the case when there's --config but --silent is not set
2021-06-13 16:28:12 +02:00
Yash Tripathi d30a22cae3
Setting proper keys in exported config (#557)
* Set the resolved profile path to the actual desktop environment

* split Nvidia driver list into proprietary and open-source

* Updated select_driver to use archinstall.arguments for driver selection

* Adding default value that works with later .get()

* audio will now be prompted irrespective of profile
2021-06-13 14:52:24 +02:00
Dylan M. Taylor 4e17355796
Implement is_desktop_profile helper function (#575)
* Implement is_desktop_profile helper function

* Make ask_for_audio_selection use generic_select

* Fix default value for audio selection

* Leverage list of supported desktops to perform is_desktop_profile check

* is_desktop_profile was missing a default return value

* Store return value for audio server
2021-06-13 14:32:38 +02:00
Anton Hvornum d76760b45f Removed old safety logics for partitions. Partitions will now always be formatted when .format() is called on them. The safety now lay in the code parsing the declerative partition layouts. Also added the encrypt/mount logic for encrypted partitions, which by default will be unencrypted unless a password is specified. 2021-06-13 14:25:07 +02:00
Anton Hvornum af790faf7a Added multi-disk suggested layout. It's sorted on performance, and the first relevant disk with the closest size to a desired size will be used for root, and the same (exluding the one already used) will be used for /home 2021-06-13 11:25:33 +02:00
Iru Cai c4edf34764 fix the case when there's --config but --silent is not set 2021-06-13 16:51:57 +08:00
Anton Hvornum 9b6d7021a8 This fixes https://github.com/archlinux/archinstall/pull/426#discussion_r650372664 2021-06-13 10:37:30 +02:00
Anton Hvornum 8cc51cbcdc Merge branch 'torxed-rework-partitioning' of github.com:archlinux/archinstall into torxed-rework-partitioning 2021-06-13 10:34:12 +02:00
Anton Hvornum 858171986c Working suggested single disk layout, preparing for multiple selections. 2021-06-13 10:34:08 +02:00
Anton Hvornum ba60d82bb9 Added BlockDevice.spinning and BlockDevice.bus_type 2021-06-11 21:33:37 +02:00
Anton Hvornum 24476ac1f6 Made it so that the .partitions property of Install() fetches from live data, rather than storing and caching partitions on initation. Since it now supports mounting a partition layout given by external usage. 2021-06-11 17:22:20 +02:00
Anton Hvornum b9af735d85
Merge pull request #569 from dylanmtaylor/patch-1
Add a message when running check_mirror_reachable to let users know it's not frozen
2021-06-10 21:15:53 +02:00
Anton Hvornum 0a8c061ab4 Fixed format detection on commands, should be using exit codes instead? 2021-06-10 21:00:33 +02:00
Anton Hvornum adae29c205 vfat -> fat32, updated minimal 2021-06-10 20:40:28 +02:00
Anton Hvornum 4e9b1c1635 Renamed vfat -> fat32 for the purpose of consistency. Most actions are referring to fat32, it's only mkfs that has the notion vfat and then -F32 for format 32. And I think vfat confuses more people than it does good, so sticking with fat32 which works better with parted as well. Also added the partitioning logic, started on the mounting logic 2021-06-10 20:38:35 +02:00
Anton Hvornum 4691bad46b Added wipe support to layout definitions. Also changed default start positions of partitions to 1MiB in. 2021-06-10 19:29:10 +02:00
Dylan M. Taylor 2eec8ffd6c
Clarify driver recommendations (#572) 2021-06-10 15:43:50 +02:00
Anton Hvornum 857b5c0c3e Skipping bootloader selection if --bootloader was given. 2021-06-10 15:30:58 +02:00
Anton Hvornum 0946b73095 Merging in latest changes from master. 2021-06-10 15:27:02 +02:00
Yash Tripathi fcd0acfef2
added --dry-run flag (#570)
* added --dry-run flag
2021-06-10 15:06:15 +02:00
Dylan M. Taylor 3023e57033
Add a message when running check_mirror_reachable to let users know it is not frozen. 2021-06-10 07:44:23 -04:00
Anton Hvornum e8d38ea1a7 Started working on partitioning logic from declarative layouts. 2021-06-10 13:39:50 +02:00
Anton Hvornum 14d0685edc
Merge pull request #552 from l4zy0n3/patch-1
added support for optionally seperating credentials from config
2021-06-10 13:34:59 +02:00
Anton Hvornum 67b1a9395f
Merge pull request #551 from m1ten/patch-1
adds python-sphinx in make dependency and manual
2021-06-10 13:32:39 +02:00
Anton Hvornum 5ae3d11ab2
Merge pull request #537 from archlinux/torxed-fix-517
Introduces the use of HTTP mirrors additionally
2021-06-10 13:31:27 +02:00
Anton Hvornum dc10725bf9
Merge pull request #538 from archlinux/torxed-fix-536
Attempt to fix issue regarding broken output
2021-06-10 13:27:48 +02:00
Anton Hvornum 4668ea235c
Merge pull request #568 from dylanmtaylor/patch-1
Only run publish_pypi when a tag is created on the master branch
2021-06-10 13:20:26 +02:00
Dylan M. Taylor e5e818a52a
Only run publish_pypi when a tag is created on the master branch 2021-06-10 07:14:51 -04:00
Anton Hvornum d3dddcf425
Merge pull request #565 from dylanmtaylor/patch-1
Exit codes are an 8 bit value and could be 0 through 255
2021-06-10 12:54:33 +02:00
Dylan M. Taylor 0563d307e8
Exit codes are an 8 bit value and could be 0 through 255
We also don't need to check the exit code - this message should just be displayed if we are not root
2021-06-10 06:53:05 -04:00
Anton Hvornum 14aeb3b177
Merge pull request #562 from dylanmtaylor/hide-requires-root-if-root
Only print requires root messages if effective user id is not root
2021-06-10 11:53:43 +02:00
Anton Hvornum 4572a41159
Merge pull request #559 from dylanmtaylor/patch-1
Proposal: Split Nvidia so that there are two options for it
2021-06-10 10:02:56 +02:00