installer: When there is only one disk, fix automatic selection

This commit is contained in:
Michael Tremer
2014-08-21 20:30:42 +02:00
parent 5e41745edf
commit ee43f517e8
2 changed files with 2 additions and 1 deletions

View File

@@ -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++;

View File

@@ -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) {