aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-11 16:18:12 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-11 16:18:12 -0800
commit6def6a58d5fed5e146b4c8704b5df12bb1184a1a (patch)
tree15e8e9ee92be89fa59818c851a4b41171730d4f8 /init
parent6551f0aa45b999eb00d412c8aec4f47084d35f56 (diff)
downloadhistory-6def6a58d5fed5e146b4c8704b5df12bb1184a1a.tar.gz
[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...
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 51aa488d45c6fc..81327e407b91d7 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -163,6 +163,9 @@ dev_t __init name_to_dev_t(char *name)
res = Root_NFS;
if (strcmp(name, "nfs") == 0)
goto done;
+ res = Root_RAM0;
+ if (strcmp(name, "ram") == 0)
+ goto done;
if (strlen(name) > 31)
goto fail;