Skip to content

Commit

Permalink
Increase suggested root partition size (#2905)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles authored Nov 21, 2024
1 parent bda0752 commit f5447e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions archinstall/lib/interactions/disk_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ def process_root_partition_size(total_size: disk.Size, sector_size: disk.SectorS
if total_device_size.value > 500:
# maximum size
return disk.Size(value=50, unit=disk.Unit.GiB, sector_size=sector_size)
elif total_device_size.value < 200:
elif total_device_size.value < 320:
# minimum size
return disk.Size(value=20, unit=disk.Unit.GiB, sector_size=sector_size)
return disk.Size(value=32, unit=disk.Unit.GiB, sector_size=sector_size)
else:
# 10% of total size
length = total_device_size.value // 10
Expand All @@ -305,7 +305,7 @@ def suggest_single_disk_layout(
sector_size = device.device_info.sector_size
total_size = device.device_info.total_size
available_space = total_size
min_size_to_allow_home_part = disk.Size(40, disk.Unit.GiB, sector_size)
min_size_to_allow_home_part = disk.Size(64, disk.Unit.GiB, sector_size)

if filesystem_type == disk.FilesystemType.Btrfs:
prompt = str(_('Would you like to use BTRFS subvolumes with a default structure?')) + '\n'
Expand Down Expand Up @@ -443,7 +443,7 @@ def suggest_multi_disk_layout(
# https://www.reddit.com/r/btrfs/comments/9us4hr/what_is_your_btrfs_partitionsubvolumes_scheme/
min_home_partition_size = disk.Size(40, disk.Unit.GiB, disk.SectorSize.default())
# rough estimate taking in to account user desktops etc. TODO: Catch user packages to detect size?
desired_root_partition_size = disk.Size(20, disk.Unit.GiB, disk.SectorSize.default())
desired_root_partition_size = disk.Size(32, disk.Unit.GiB, disk.SectorSize.default())
mount_options = []

if not filesystem_type:
Expand Down

0 comments on commit f5447e9

Please sign in to comment.