* Don't offer "Guided - use the largest continuous free space" if the only
free space available is unusable.
r44126
Colin Watson
17 years ago
9 | 9 | cd $dev |
10 | 10 | open_dialog PARTITIONS |
11 | 11 | while { read_line num id size type fs path name; [ "$id" ]; }; do |
12 | if [ "$fs" = free ] && ! longint_le $size $mysize; then | |
12 | if [ "$fs" = free ] && [ "$type" != unusable ] && ! longint_le $size $mysize; then | |
13 | 13 | mysize=$size |
14 | 14 | mypart=$dev//$id |
15 | 15 | fi |