ubox fix extroot delay
authorPeter Wagner <tripolar@gmx.at>
Thu, 11 Jul 2013 10:02:06 +0000 (10:02 +0000)
committerJohn Crispin <blogic@openwrt.org>
Thu, 11 Jul 2013 16:27:28 +0000 (18:27 +0200)
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 <tripolar@gmx.at>
block.c

diff --git a/block.c b/block.c
index 2108a8d..18c9299 100644 (file)
--- a/block.c
+++ b/block.c
@@ -712,6 +712,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) {