From 3f13b46b76bebc23bba75b697e2f68134b8ad7a0 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 27 Feb 2004 15:00:36 +0000 Subject: when in automatic=disk mode but no partition is given, fall back on non automatic mode evidently --- mdk-stage1/disk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mdk-stage1/disk.c') 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; -- cgit v1.2.1