Ignore network devices used by NBD
[platform/upstream/connman.git] / src / inet.c
index 81668f8..b1c55b8 100644 (file)
@@ -3509,6 +3509,10 @@ static int get_nfs_server_ip(const char *cmdline_file, const char *pnp_file,
        for (pp = args; *pp; pp++) {
                if (!strcmp(*pp, "root=/dev/nfs"))
                        break;
+               if (!strncmp(*pp, "root=/dev/nbd", strlen("root=/dev/nbd")))
+                       break;
+               if (!strncmp(*pp, "nbddev=", strlen("nbddev=")))
+                       break;
        }
        /* no rootnfs found */
        if (!*pp)
@@ -3518,6 +3522,8 @@ static int get_nfs_server_ip(const char *cmdline_file, const char *pnp_file,
        for (pp = args; *pp; pp++) {
                if (!strncmp(*pp, "nfsroot=", strlen("nfsroot=")))
                        break;
+               if (!strncmp(*pp, "nbdroot=", strlen("nbdroot=")))
+                       break;
        }
        /* no nfsroot argument found */
        if (!*pp)