index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archinstall/lib/disk.py | 2 |
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index d4cabc67..4a5b2f4c 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -87,7 +87,7 @@ def select_largest_device(devices, gigabytes, filter_out=None): if not len(copy_devices): return None - return max(copy_devices, key=(lambda device : abs(device.size - gigabytes))) + return max(copy_devices, key=(lambda device : device.size if device.size > gigabytes else 0)) def select_disk_larger_than_or_close_to(devices, gigabytes, filter_out=None): if not filter_out: |