Commit Graph

82 Commits

Author SHA1 Message Date
HADEON 747385a883
Lvm2/LUKS fixes/Mirror Logic (#4047)
* Lvm hotfix attempt

* Use --force and --yes flags

* Changed mirror behavior and more lvm testing

* Handle properly LvmOnLuks to only export in one fo the scenarios

* Idek

* Remove dead block

* Use -f flag and wipefs to remove any existing headers avoid "has signatures"

* oops

* Revert mirror change
2025-12-29 17:35:24 +01:00
HADEON 5fcea379b9
Fix LVM creation/ info (#4024)
* use pull and udev sync

* 30s -> 5min
2025-12-25 13:07:26 +11:00
Daniel Girtler d256e70480
Fix 3785 - F2FS parameters require 'extra_attr' (#3796)
Co-authored-by: Daniel Girtler <dgirtler@atlassian.com>
2025-09-17 10:32:04 +02:00
Daniel Girtler 96aaf5b6ac
Rename module device_model -> device (#3639) 2025-07-15 09:29:58 +02:00
Haouari haitam Kouider b3b00aa00f
Add interface to change LUKS iteration time (#3634)
* Added User Interface to change iteration time for LUKS encryption

* removing unneessary try catch and imports

* used the same constant in luks.py file

* fixed issue with error firing in default value

* fixed ruf preview warnings

* preview even if its default value. (iter_time)

* check encryption type is not non before showing iter_time

* using _real_input with input_vp instead of _current_text

* proper check for enc_type

* added Interation time to outer menu preview

* removed (ms) from title. so that we don't need to translate "Iteration time" and "iteration time (ms)".

* a comment slipped in. this was not supposed to be in this pull

* fixed comparison str with EncryptionType
2025-06-30 11:11:24 +10:00
codefiles c8f1f78679
Remove duplicate LUKS unlock check (#3510) 2025-05-27 13:08:45 +10:00
Daniel Girtler d3f32f308c
Update ruff formatter (#3496)
* Update ruff formatter

* Update
2025-05-24 07:58:42 +00:00
Daniel Girtler c67ac97f18
Ruff formatting (#3459)
* Update

* Update
2025-05-15 14:26:41 +02:00
correctmost 781760a157
Break an import cycle between lib/luks and lib/disk/device_handler (#3438) 2025-05-05 17:04:16 +10:00
Anton Hvornum 16e9bbe583
Removed the @.snapshots volume in order to support both Snapper and Timeshift #3363 (#3408) 2025-04-26 11:57:36 +02:00
Daniel Girtler 4f1d1b4739
Store password as hash instead of plaintext (#3276)
* Rework user password to be hash

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Generate yescrypt hash

* Update

* Update

* Update

* Update
2025-04-08 08:53:18 +02:00
correctmost 4711f7abad
Fix Pydantic deprecation warnings (#3301)
This commit also enables mypy checks for deprecated calls.
2025-03-26 08:14:11 +11:00
mintsuki c78f78fa9a
More properly support FAT12 and FAT16 ESPs (#3268)
FAT12 and FAT16 are also valid filesystems for ESPs, therefore, try to support them
2025-03-23 10:14:52 +11:00
codefiles d326ceff45
Add udev sync after LUKS encrypt (#3289) 2025-03-22 11:16:19 +11:00
Daniel Girtler 12562f4cae
Add newline after countdown (#3237) 2025-03-10 22:02:26 +11:00
correctmost 6a90760e67
Clean up most no-implicit-reexport warnings from mypy (#3233)
This makes it easier to run mypy --strict from the command line
and should hopefully make it easier to clean up import cycles in
future commits.
2025-03-09 19:50:56 +11:00
codefiles 4b07f8a3ae
Rework default partition table (#3197) 2025-02-23 21:16:11 +01:00
codefiles d69441a2da
Fix typing for enc_conf parameter (#3195) 2025-02-23 18:50:32 +11:00
codefiles b83bc79d91
Fix MBR conditional (#3192) 2025-02-23 10:20:06 +11:00
Daniel Girtler b57f7f91cf
Integrate new arguments data structure (#3167)
* Integrate new args dataclass

* Integrate args

* Update

* Update

* Update

* Update
2025-02-20 07:35:59 +11:00
Anton Hvornum 6d371da5df
Remove reiserfs as it's been deprecated since 2022 (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a452c4eb404df8a7f2a79a37ac77b90b6db1a2c9) and been removed in the kernel as of 2024-11-21 (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c01f664e4ca210823b7594b50669bbd9b0a3c3b0) (#3134) 2025-01-21 18:53:55 +01:00
codefiles 19c390e072
disk: add support for creating swap partitions (#3129) 2025-01-18 16:48:48 +11:00
codefiles 5f8cdcb39b
disk: change from_partition() parameters (#3039) 2024-12-23 09:08:02 +11:00
codefiles 4dccd54cbd
Replace commonprefix() with commonpath() (#3016) 2024-12-09 13:25:08 +11:00
codefiles 3716df9bb7
Fix pre-mounted Btrfs subvolumes root detection (#3014) 2024-12-09 10:38:16 +11:00
codefiles ae3b0f8d75
Remove superfluous try in get_btrfs_info() (#3010) 2024-12-08 09:01:51 +11:00
Michael Ziminsky (Z) 256f206b9e
btrfs improvements and fixes (#2970) 2024-12-01 18:35:30 +11:00
correctmost f314b7be54
Replace some Any instances with specific type hints (#2950) 2024-11-28 20:14:58 +11:00
codefiles 7fd726f03f
Fix log disk states (#2902) 2024-11-21 10:50:43 +11:00
codefiles 0eac05cecc
Add linux-home partition flag (#2898) 2024-11-20 15:32:29 +01:00
codefiles 611af783aa
Fix partition flag value (#2897) 2024-11-20 14:49:34 +01:00
codefiles 4f704b8501
Refactor partition type GUID (#2890) 2024-11-19 23:41:27 +01:00
correctmost f3f7700945
Remove unused Any instances from TYPE_CHECKING blocks (#2878)
This will make it easier to start removing more Any instances from
the codebase.
2024-11-19 18:30:41 +11:00
correctmost 955b2cfc3e
Sort and format imports in lib/disk/ (#2875) 2024-11-18 23:29:56 +01:00
correctmost 80b4dab092
Remove remaining Optional and Union usage from the codebase (#2868) 2024-11-18 20:59:08 +11:00
correctmost 9626965982
Remove remaining deprecated typing.Dict and typing.List usage (#2859) 2024-11-18 20:02:35 +11:00
codefiles 8fc3dc4358
Parse lsblk data with pydantic (#2775) 2024-11-18 07:42:09 +11:00
correctmost 44eb7f92e9
Fix useless-object-inheritance (UP004) Ruff warning (#2831) 2024-11-16 20:54:14 +11:00
correctmost 2408b597be
Enable the E128 flake8 rule for all code except for __init__.py (#2827)
This commit also fixes a few files that had non-uniform indentation.
2024-11-16 19:34:29 +11:00
Daniel Girtler 28eaa8c0e4
Wait for LVM info to appear (#2778)
* Wait forever for LVM info

* Update
2024-11-09 14:20:25 +01:00
Daniel Girtler 918ac5c765
Fix 2735 - Erase luks partition explicitly (#2745) 2024-11-04 12:42:12 +01:00
codefiles 661328767c
Exclude archiso loop device (#2715) 2024-10-03 16:11:20 +10:00
codefiles 8db3c7d65d
Add get_loop_devices() (#2698) 2024-09-25 23:02:51 +10:00
codefiles 6a2a204f18
Add udev_sync() (#2669) 2024-09-06 23:29:12 +02:00
correctmost 35c8eb3394
Fix unnecessary f-strings and enable flake8 rule (#2653) 2024-08-29 03:01:55 +10:00
correctmost 62b4099c8d
Fix whitespace issues detected by flake8 (#2652)
This commit also removes exclusions that are no longer needed.
2024-08-29 01:40:53 +10:00
correctmost 7b5f1f72f9
Expand mypy checks to include more files and more checks (#2651)
This commit also centralizes the mypy configuration in one spot.
2024-08-29 00:39:22 +10:00
correctmost 63b4184f70
Fix most of the mypy errors in archinstall/lib/disk/ (#2639) 2024-08-28 05:40:51 +10:00
codefiles 179ba3cd9a
Fix load_devices() lsblk (#2565)
* Fix load_devices() lsblk

* Add udev sync before load_devices() lsblk call
2024-08-23 17:22:26 +02:00
codefiles d2acdb4977
Refactor create_btrfs_volumes() (#2621) 2024-08-22 16:41:10 +10:00