From: Tony Lindgren Date: Mon, 9 May 2005 21:17:42 +0000 (-0700) Subject: Allow booting from USB drive X-Git-Tag: v2.6.13-omap1~170 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9bdad5324110c4a5d017fd095229ec69d11299ac;p=linux-2.6-omap-h63xx.git Allow booting from USB drive Allows booting from USB drive. Signed-off-by: Tony Lindgren --- diff --git a/init/do_mounts.c b/init/do_mounts.c index b7570c074d0..beac71b0909 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -287,6 +287,7 @@ void __init mount_block_root(char *name, int flags) char *fs_names = __getname(); char *p; char b[BDEVNAME_SIZE]; + int i = 0; get_fs_names(fs_names); retry: @@ -301,6 +302,14 @@ retry: case -EINVAL: continue; } + + printk("VFS: No root yet, retrying to mount root on %s (%s)\n", + root_device_name, __bdevname(ROOT_DEV, b)); + current->state = TASK_INTERRUPTIBLE; + schedule_timeout(10 * HZ); + if (i++ < 5) + goto retry; + /* * Allow the user to distinguish between failed sys_open * and bad superblock on root device.