From 17af86139f4d038f00ed21648dc145ef1e5c1b51 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 19 May 2014 23:02:56 +0200 Subject: [PATCH] skip ubi volume detection if ubifs is not present (fall back to mtd in that case) Signed-off-by: Felix Fietkau --- libfstools/ubi.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.25.1