mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
installer: When there is only one disk, fix automatic selection
This commit is contained in:
@@ -307,7 +307,7 @@ struct hw_disk** hw_select_disks(struct hw_disk** disks, int* selection) {
|
||||
unsigned int num_disks = hw_count_disks(disks);
|
||||
|
||||
for (unsigned int i = 0; i < num_disks; i++) {
|
||||
if (selection && selection[i]) {
|
||||
if (!selection || selection[i]) {
|
||||
struct hw_disk *selected_disk = disks[i];
|
||||
selected_disk->ref++;
|
||||
|
||||
|
||||
@@ -464,6 +464,7 @@ int main(int argc, char *argv[]) {
|
||||
// Currently not supported
|
||||
} else {
|
||||
errorbox(_("You disk configuration is currently not supported."));
|
||||
fprintf(flog, "Num disks selected: %d\n", num_selected_disks);
|
||||
}
|
||||
|
||||
if (selected_disks) {
|
||||
|
||||
Reference in New Issue
Block a user