diff options
-rw-r--r-- | mdk-stage1/disk.c | 4 |
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; |