Commit 9bdad532 authored by Tony Lindgren's avatar Tony Lindgren

Allow booting from USB drive

Allows booting from USB drive.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 23fa4cce
...@@ -287,6 +287,7 @@ void __init mount_block_root(char *name, int flags) ...@@ -287,6 +287,7 @@ void __init mount_block_root(char *name, int flags)
char *fs_names = __getname(); char *fs_names = __getname();
char *p; char *p;
char b[BDEVNAME_SIZE]; char b[BDEVNAME_SIZE];
int i = 0;
get_fs_names(fs_names); get_fs_names(fs_names);
retry: retry:
...@@ -301,6 +302,14 @@ retry: ...@@ -301,6 +302,14 @@ retry:
case -EINVAL: case -EINVAL:
continue; 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 * Allow the user to distinguish between failed sys_open
* and bad superblock on root device. * and bad superblock on root device.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment