index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-09-04 16:39:15 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-09-04 16:39:15 +0200 |
commit | 1814a19d6adb3e465df2a276cc87f85974f613c3 (patch) | |
tree | a5d30ce9da6184f6ff4fba85c93f28d9863eccbb /archinstall/lib | |
parent | 81e52bc3fffa4bef38af0cd06888066425c4bdb5 (diff) |
-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: |