This patches fixes the extroot delay. It creates the devicefiles again
when no device was found and updates the device list afterwards.
Signed-off-by: Peter Wagner tripo...@gmx.atdiff --git a/block.c b/block.c
index d0fce7e..245973e 100644
--- a/block.c
+++ b/block.c
@@ -702,6 +702,8 @@ static int mount_extroot(char *cfg)
if (!pr delay_root){
fprintf(stderr, extroot: is not ready yet, retrying in %ui seconds\n, delay_root);
sleep(delay_root);
+ mkblkdev();
+ cache_load(0);
pr = find_block_info(m-uuid, m-label, NULL);
}
if (pr) {
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel