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 2108a8dab0d4eb557109b5b6b1d3337aed33db16..18c9299961a4b55aa12ae98521a3c65e9bb20bf5 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) {