summaryrefslogtreecommitdiff
path: root/packages/linux/linux-storcenter/10-command-line.patch
blob: 6d2647bdcc720823c1e47fecaf9145420a27f512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- linux-2.6.12.6.orig/arch/ppc/platforms/iomega8241.c	2006-10-31 08:48:09.000000000 -0800
+++ linux-2.6.12.6/arch/ppc/platforms/iomega8241.c	2006-11-08 08:19:58.000000000 -0800
@@ -82,6 +82,10 @@
 
 static void iomega8241_halt(void);
 
+static char iomega8241_command_line[] __initdata =
+	"root=/dev/mtdblock2 rootfstype=jffs2 rw init=/linuxrc "
+	CONFIG_CMDLINE;
+
 /*
  * Define all of the IRQ senses and polarities.  
  */
@@ -519,6 +523,12 @@
 		strcpy(cmd_line, (char *)(r6+KERNELBASE));
 	}
 
+	/*
+	 * Just use our command line, no matter what
+	 */
+	strlcpy(cmd_line, iomega8241_command_line, COMMAND_LINE_SIZE);
+
+
 #ifdef CONFIG_BLK_DEV_INITRD
 	/* take care of initrd if we have one */
 	if (r4) {