- root=
+ root= [KNL] Mount root on specified (as hex or "/dev/XXX") device.
+
+ rootfs= [KNL] Use filesystem type specified (e.g. rootfs=ext2) for root.
rw [KNL] Mount root device read-write on boot.
diff -urN -X dontdiff linux/fs/super.c 2329-p1-rd/fs/super.c
--- linux/fs/super.c Fri Nov 19 09:00:39 1999
+++ 2329-p1-rd/fs/super.c Fri Nov 19 16:54:25 1999
@@ -15,6 +15,7 @@
*
* Added kerneld support: Jacques Gelinas and Bjorn Ekwall
* Added change_root: Werner Almesberger & Hans Lermen, Feb '96
+ * Added rootfs boot param. used by mount_root(): Tigran Aivazian, Nov 99.
*/
#include <linux/config.h>
@@ -54,6 +55,12 @@
/* this is initialized in init/main.c */
kdev_t ROOT_DEV;
+/* this can be set at boot time, e.g. rootfs=ext2
+ * if set to invalid value or if read_super() fails on the specified
+ * filesystem type then mount_root() will go through all registered filesystems.
+ */
+char rootfs[128] __initdata = "ext2";
+
int nr_super_blocks = 0;
int max_super_blocks = NR_SUPER;
LIST_HEAD(super_blocks);
@@ -1122,6 +1129,24 @@
goto dput_and_out;
}