Created
March 3, 2015 18:33
-
-
Save invisiblek/a97b5232c48b59e9e17c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/util-linux/mount.c b/util-linux/mount.c | |
index 410d028..2249d61 100644 | |
--- a/util-linux/mount.c | |
+++ b/util-linux/mount.c | |
@@ -1790,7 +1790,7 @@ static int singlemount(struct mntent *mp, int ignore_busy) | |
// Treat fstype "auto" as unspecified | |
if (mp->mnt_type && !strcmp(mp->mnt_type, "auto")) | |
mp->mnt_type = NULL; | |
- } else { | |
+ } else if (strstr(mp->mnt_fsname, "mtd")) { | |
// If user didn't specify an fstype and blkid disagrees or the | |
// fstype is "auto", trust blkid's determination of the fstype. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment