efi-boot-generator: need need to proceed if /boot is already a mount point
authorLennart Poettering <lennart@poettering.net>
Sun, 12 Apr 2015 18:01:07 +0000 (20:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 12 Apr 2015 18:01:07 +0000 (20:01 +0200)
src/efi-boot-generator/efi-boot-generator.c

index 4842286..94d7332 100644 (file)
@@ -69,9 +69,13 @@ int main(int argc, char *argv[]) {
         }
 
         r = path_is_mount_point("/boot", true);
+        if (r > 0) {
+                log_debug("/boot is already a mount point, exiting.");
+                return EXIT_SUCCESS;
+        }
         if (r == -ENOENT)
                 log_debug("/boot does not exist, continuing.");
-        else if (r <= 0 && dir_is_empty("/boot") <= 0) {
+        else if (dir_is_empty("/boot") <= 0) {
                 log_debug("/boot already populated, exiting.");
                 return EXIT_SUCCESS;
         }