diff options
-rw-r--r-- | mdk-stage1/disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c index b092604e4..ac38f82e0 100644 --- a/mdk-stage1/disk.c +++ b/mdk-stage1/disk.c @@ -96,6 +96,11 @@ static enum return_type try_with_device(char *dev_name) parts[i] = NULL; fclose(f); + if (parts[0] == NULL) { + error_message("No partitions found."); + return RETURN_ERROR; + } + results = ask_from_list_comments("Please choose the partition where is copied the " DISTRIB_NAME " Distribution.", parts, parts_comments, &choice); if (results != RETURN_OK) |