Commit 6def6a58 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix rootfs on ramdisk

From: vda <vda@port.imtp.ilyichevsk.odessa.ua>

Add a missing test for the "root=/dev/ram" kernel boot option.  It's just an
alias for /dev/ram0, but it worked in 2.4...
parent 6551f0aa
...@@ -163,6 +163,9 @@ dev_t __init name_to_dev_t(char *name) ...@@ -163,6 +163,9 @@ dev_t __init name_to_dev_t(char *name)
res = Root_NFS; res = Root_NFS;
if (strcmp(name, "nfs") == 0) if (strcmp(name, "nfs") == 0)
goto done; goto done;
res = Root_RAM0;
if (strcmp(name, "ram") == 0)
goto done;
if (strlen(name) > 31) if (strlen(name) > 31)
goto fail; goto fail;
......
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