block: also probe loop devices
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Sep 2016 03:10:05 +0000 (05:10 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Sep 2016 03:10:05 +0000 (05:10 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c

diff --git a/block.c b/block.c
index b8ef430126e6dbd3ce81cd998ab78fb6306ee4fc..843d40292a016146292dd9ae27df80aead9f7e14 100644 (file)
--- a/block.c
+++ b/block.c
@@ -518,6 +518,7 @@ static void cache_load(int mtd)
                _cache_load("/dev/ubiblock*");
                _cache_load("/dev/ubi[0-9]*");
        }
+       _cache_load("/dev/loop*");
        _cache_load("/dev/mmcblk*");
        _cache_load("/dev/sd*");
        _cache_load("/dev/hd*");