Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat[#293]: Add "Do not format" toggle for /var partition in manual partitioning #407

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vanilla_installer/defaults/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PartitionRow(Adw.ActionRow):

__siblings: list

__partition_fs_types = ["btrfs", "ext4", "ext3", "fat32", "xfs"]
__partition_fs_types = ["unformatted", "btrfs", "ext4", "ext3", "fat32", "xfs"]

def __init__(self, page, parent, partition, modifiable, default_fs, **kwargs):
super().__init__(**kwargs)
Expand Down
3 changes: 3 additions & 0 deletions vanilla_installer/utils/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def setup_partition(
):
mountpoints.append([part, values["mp"]])
if values["fs"] == "unformatted":
operation = "namepart"
format_args = [part_number, part_name]
setup_steps.append([part_disk, operation, format_args])
return
format_args = [part_number, values["fs"]]
if encrypt:
Expand Down