summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:25:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-11 22:25:49 +0000
commitb12399dd1e6beaa950e8d53b11e3a41648693c29 (patch)
tree7c44d77ed5027f41fb9075ee61e6ee6718054ce3 /mdk-stage1
parent3f2fff95386862944f1e9cd1e29a7b3709802539 (diff)
downloaddrakx-b12399dd1e6beaa950e8d53b11e3a41648693c29.tar
drakx-b12399dd1e6beaa950e8d53b11e3a41648693c29.tar.gz
drakx-b12399dd1e6beaa950e8d53b11e3a41648693c29.tar.bz2
drakx-b12399dd1e6beaa950e8d53b11e3a41648693c29.tar.xz
drakx-b12399dd1e6beaa950e8d53b11e3a41648693c29.zip
act nicely when no partitions are found on some disk
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/disk.c5
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)