From 9bdad5324110c4a5d017fd095229ec69d11299ac Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 9 May 2005 14:17:42 -0700 Subject: [PATCH] Allow booting from USB drive Allows booting from USB drive. Signed-off-by: Tony Lindgren --- init/do_mounts.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- 2.41.1