chiark / gitweb /
generators: make automatic discovery generators work correctly when reloading
[elogind.git] / src / gpt-auto-generator / gpt-auto-generator.c
index eb900b126395afa5beebdd9b71880f50c32e1968..3b7bc212d95ac628684e0f6e609e5d76e2e58af1 100644 (file)
@@ -298,7 +298,8 @@ static int add_mount(const char *id, const char *what, const char *where, const
         assert(fstype);
         assert(description);
 
-        if (dir_is_empty(where) <= 0) {
+        if (path_is_mount_point(where, true) <= 0 &&
+            dir_is_empty(where) <= 0) {
                 log_debug("%s already populated, ignoring.", where);
                 return 0;
         }