Re: [PATCH] UML - part 2 of 3

From: Jeff Dike (jdike@karaya.com)
Date: Tue Aug 13 2002 - 15:08:56 EST


torvalds@transmeta.com said:
> Please use "root=0xXXYY" instead, or consider figuring out the name
> _automatically_ from the list of genhd's in the system (ie the reverse
> of blkdev_name() or whatever it is called).

OK, consider that patch withdrawn. In its place is the one below. It's in
UML arch code, so it needs to be applied after UML itself. It disables
'root=/dev/ubdxx' in UML for the time being.

The root_dev_names array looks like it can be eliminated entirely, as long
as the gendisk list is populated before checksetup. This means either there
needs to be a before_setup_initcall or the calculation of the rootdev kdev_t
needs to be split out from the argument parsing and put in a late initcall.
I don't know if that breaks anything.

If that is reasonable, I can start laying the groundwork.

                                Jeff

--- linus/arch/um/kernel/um_arch.c~ Fri Aug 2 22:06:03 2002
+++ linus/arch/um/kernel/um_arch.c Tue Aug 13 14:32:39 2002
@@ -38,7 +38,7 @@
 int fg_console;
 struct kbd_struct kbd_table[MAX_NR_CONSOLES];
 
-#define DEFAULT_COMMAND_LINE "root=/dev/ubd0"
+#define DEFAULT_COMMAND_LINE "root=6200"
 
 unsigned long thread_saved_pc(struct task_struct *task)
 {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:33 EST