Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created March 3, 2015 18:33
Show Gist options
  • Save invisiblek/a97b5232c48b59e9e17c to your computer and use it in GitHub Desktop.
Save invisiblek/a97b5232c48b59e9e17c to your computer and use it in GitHub Desktop.
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