Unverified Commit 00f848f3 by Christian Brauner Committed by GitHub

Merge pull request #3529 from pranaysrivastava/fixup_rootfs_detection

Check only rootfs as filesystem type
parents c22a1a4a 97edebfa
......@@ -704,7 +704,7 @@ bool detect_ramfs_rootfs(void)
if (strcmp(p + 1, "/") == 0) {
/* This is '/'. Is it the ramfs? */
p = strchr(p2 + 1, '-');
if (p && strncmp(p, "- rootfs rootfs ", 16) == 0)
if (p && strncmp(p, "- rootfs ", 9) == 0)
return true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment