[OpenWrt-Devel] ubox fix extroot delay

2013-07-11 Thread Peter Wagner
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


Re: [OpenWrt-Devel] ubox fix extroot delay

2013-07-11 Thread John Crispin

On 11/07/13 13:02, Peter Wagner wrote:

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 Wagnertripo...@gmx.at



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



Hi,

Thanks, i just applied this and the previous patch you mailed.

John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel