setup: print --path suggestion only if the user didn't use --path
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Feb 2013 19:57:51 +0000 (20:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Feb 2013 19:57:51 +0000 (20:57 +0100)
setup.c

diff --git a/setup.c b/setup.c
index e56b527..c7bcb4e 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -946,7 +946,7 @@ int main(int argc, char*argv[]) {
         }
 
         r = verify_esp();
-        if (r == -ENODEV)
+        if (r == -ENODEV && !arg_path)
                 fprintf(stderr, "You might want to use --path= to indicate the path to your ESP, in case it is not mounted to /boot.\n");
         if (r < 0)
                 goto finish;