Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created January 13, 2015 05:17
Show Gist options
  • Save invisiblek/d5bdb37728c9da1da44b to your computer and use it in GitHub Desktop.
Save invisiblek/d5bdb37728c9da1da44b to your computer and use it in GitHub Desktop.
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 16b58a0..923e6d4 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1926,7 +1926,10 @@ static int singlemount(struct mntent *mp, int ignore_busy)
break;
mp->mnt_type = next + 1;
}
+ if (rc !=0 && mp->mnt_type)
+ goto attempt_auto_filesystem;
} else {
+attempt_auto_filesystem:
// Loop through filesystem types until mount succeeds
// or we run out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment