[PATCH] give root=/dev/ram special handling, needed for root fs on ramdisk

From: vda
Date: Tue Mar 09 2004 - 09:33:06 EST


This fixes a regression versus 2.4 reported earlied,
see http://lkml.org/lkml/2004/3/5/45
--
vdadiff -urN linux-2.6.3.orig/init/do_mounts.c linux-2.6.3/init/do_mounts.c
--- linux-2.6.3.orig/init/do_mounts.c Tue Mar 9 16:17:14 2004
+++ linux-2.6.3/init/do_mounts.c Tue Mar 9 16:18:42 2004
@@ -163,6 +163,9 @@
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;