summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-27 15:00:36 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-27 15:00:36 +0000
commit3f13b46b76bebc23bba75b697e2f68134b8ad7a0 (patch)
tree0e9c2d9a636c3f59219a2bbc0584ad2d0903116a /mdk-stage1
parentd09e21ef6e8554dd026c3c9dc26b0bb885543d72 (diff)
downloaddrakx-3f13b46b76bebc23bba75b697e2f68134b8ad7a0.tar
drakx-3f13b46b76bebc23bba75b697e2f68134b8ad7a0.tar.gz
drakx-3f13b46b76bebc23bba75b697e2f68134b8ad7a0.tar.bz2
drakx-3f13b46b76bebc23bba75b697e2f68134b8ad7a0.tar.xz
drakx-3f13b46b76bebc23bba75b697e2f68134b8ad7a0.zip
when in automatic=disk mode but no partition is given, fall back
on non automatic mode evidently
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/disk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdk-stage1/disk.c b/mdk-stage1/disk.c
index a8765ae69..3cd2da6a4 100644
--- a/mdk-stage1/disk.c
+++ b/mdk-stage1/disk.c
@@ -224,9 +224,7 @@ static enum return_type try_with_device(char *dev_name)
}
/* uglyness to allow auto starting with devfs */
- if (IS_AUTOMATIC)
- choice = get_auto_value("partition");
- else {
+ if (!IS_AUTOMATIC || streq((choice = get_auto_value("partition")), "")) {
if (parts[0] == NULL) {
stg1_error_message("No partitions found.");
return RETURN_ERROR;