From: Felix Fietkau Date: Mon, 19 May 2014 21:02:56 +0000 (+0200) Subject: skip ubi volume detection if ubifs is not present (fall back to mtd in that case) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=17af86139f4d038f00ed21648dc145ef1e5c1b51;p=project%2Ffstools.git skip ubi volume detection if ubifs is not present (fall back to mtd in that case) Signed-off-by: Felix Fietkau --- diff --git a/libfstools/ubi.c b/libfstools/ubi.c index a281729..42f76ca 100644 --- a/libfstools/ubi.c +++ b/libfstools/ubi.c @@ -180,6 +180,9 @@ static int ubi_volume_find(struct volume *v, char *name) unsigned int ubi_num; int ret = -1; + if (find_filesystem("ubifs")) + return ret; + ubi_dir = opendir(ubi_dir_name); /* check for os ubi support */ if (!ubi_dir)